I created a windows form application (using windows vista, MS visual studio 2008). This form only has a button and a textbox.
I need this form not to lose focus. for example when the form is on the screen, the user can click something that is behind the form, then the form will lose focus. So is there any way to programatically achieve this?
The form should always be on top (i have coded this using the topmost property), but yet i need the form to be focussed.
Another approach where we could code this as follows; When the form loses focus we could popup a message box (with Yes or No), when he clicks yes the Form will get back its focus.
Anyway i am clueless as in how to achieve this. can someone Help me