I would like my textbox to close itself when i click elsewhere, how can I do this?
I've seen Control.Capture
which seems to grab the mouse events, but it doesn't work.
I also tried Control.Leave
and Control.LostFocus
events but they're only triggered when I press the tab key or click on another text field.
By closing I mean remove it from it's parent, but the important thing here I think is the event