c# compact-framework textbox mouseleave
Posted
by arnoldino
on Stack Overflow
See other posts from Stack Overflow
or by arnoldino
Published on 2010-05-14T10:54:08Z
Indexed on
2010/05/14
13:24 UTC
Read the original article
Hit count: 364
hello,
I would like to leave the textbox via code.
when user clicks in the textbox, and types in something , and then the user will click outside the textbox.
on the screen there are just labels. only this one textbox is on the form.
my problem is, that the textbox does not lost focus when I click everywhere on the screen. the texbox it still has the focus.
this textbox is used to filter a list, built from labels. the complete story is: - I have no mainmenu on the screen, so the Sip icon is not visible - user clicks in the textbox, and i bring up the SIP, in the textbox.GotFocus event - user types in some letters, the list is filtered - if user clicks away, the SIP disappears (textbox.lostfocus), but the textbox still has the focus, I mean the cursor remains in the textbox - when user wants to type some other letters for filtering, it clicks in the textbox, but GotFocus does not fire
how can I make the texbox to loose the focus?
© Stack Overflow or respective owner