seems pretty simple but..

  • Thread starter Thread starter Harold Demure
  • Start date Start date
H

Harold Demure

maybe not. (if this is the wrong ng, plz point me to the right one)..

i'm trying to add simple text find capability to a tool at work and am
having problems. i want it to work just like Notepad - that is the Find
dialog remains in focus after clicking the Find button and at the same time,
the found text in the edit control is hilited and remains so even while the
edit control does not have focus. i can get the text to hilite alright but
it's only visible if i set focus to the edit control just after calling the
Find method. this is totally opposite of what Notepad is doing. does anybody
have any idea how Notepad accomplishes this?
 
maybe not. (if this is the wrong ng, plz point me to the right one)..

i'm trying to add simple text find capability to a tool at work and am
having problems. i want it to work just like Notepad - that is the Find
dialog remains in focus after clicking the Find button and at the same time,
the found text in the edit control is hilited and remains so even while the
edit control does not have focus. i can get the text to hilite alright but
it's only visible if i set focus to the edit control just after calling the
Find method. this is totally opposite of what Notepad is doing. does anybody
have any idea how Notepad accomplishes this?

Hi,

Set the HideSelection property of the TextBox to false.

Hope this helps.
Moty
 
Moty Michaely said:
Hi,

Set the HideSelection property of the TextBox to false.
thanx.. can't believe it was that simple. been a while since i worked
directly with the common controls.
 
Back
Top