I have aplication with 2 forms (form1, form2). First form opens the second(form2). When form2 is closed i need to activate gotfocus event on form1. I've tried something like this:
|
Sry for my bad english and pls help if u can
|
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Dec 12, 2009, 2:26 AM
GotFocus() and LostFocus() only works with Controls ..
For Form you need to use Activated() and Deactivated() event.
Hiren SoniPosted Dec 11, 2009, 11:03 PM
Kliment JanceskiPosted Dec 11, 2009, 10:59 PM
Hiren SoniPosted Dec 11, 2009, 9:30 PM
Hiren SoniPosted Dec 11, 2009, 8:54 PM
Sam HobbsPosted Dec 11, 2009, 8:28 PM
- Set the event handler for the event
- Set the focus to a specific field
- Without moving the focus, do the processing that would be done when the control gets focus
I am sorry, but it is very unclear which of the three that you are asking about.