Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find Dialog Box

Status
Not open for further replies.

tek2002

Programmer
Aug 21, 2001
67
US
Form1 has a richtextbox with some menu items including 'Find'

Form2 is called when form1's find menu item is clicked.

The word that i am looking for in the find dialog box is highlighted in the richtexbox only when i close the find dialog box - is there a way to have the word in the richtextbox highlighted without having to close the find dialog box?

Thanks
 
Try
rtf.HideSelection = False

[Visual Basic]
Public Property HideSelection As Boolean

Property Value
true if the selected text does not appear highlighted when the text box control loses focus; false, if the selected text remains highlighted when the text box control loses focus. The default is true.

Remarks
You can use this property to keep text highlighted in a text box control while another form or a dialog box has focus, such as a spelling checker dialog box.



Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top