We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Find and FindNext on EditControl

Thread ID:

Created:

Updated:

Platform:

Replies:

9975 Jan 19,2004 06:14 PM Jan 19,2004 06:25 PM Windows Forms 1
loading
Tags: EditControl
Marco Ensing
Asked On January 19, 2004 06:14 PM

The Find() method returns an EditLocationRange however the FindNext() does not return an EditLocationRange, What is a good way to find and format all occurances within an editControl Regards, Marco Syncfusion.Windows.Forms.Edit.EditLocationRange elr = this.editControl1.Find("0", "Depth", false, false, true, false, false, false, true); while (elr != null) { editControl1.AddWaveLine(elr, "Wave Line Blue"); elr = this.editControl1.FindNext(); }

Marco Ensing
Replied On January 19, 2004 06:25 PM

The following will work Syncfusion.Windows.Forms.Edit.EditLocation el = new Syncfusion.Windows.Forms.Edit.EditLocation(); Syncfusion.Windows.Forms.Edit.EditLocationRange elr = this.editControl1.Find(el, "Depth", false, false, true, false, false, false, true); while (! elr.IsEmpty()) { editControl1.AddWaveLine(elr, "Wave Line Blue"); el = elr.End; elr = this.editControl1.Find(el, "Depth", false, false, true, false, false, false, false); } >The Find() method returns an EditLocationRange however the FindNext() does not return an EditLocationRange, > >What is a good way to find and format all occurances within an editControl > >Regards, > >Marco > >Syncfusion.Windows.Forms.Edit.EditLocationRange elr = this.editControl1.Find("0", "Depth", false, false, true, false, false, false, true); >while (elr != null) { > editControl1.AddWaveLine(elr, "Wave Line Blue"); > elr = this.editControl1.FindNext(); >}

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;