Hi,
I am trying to migrate a vb6.0 application to vb.net. I have a major issue while executing the code under form.activated and form.deactivate. There is a difference in behaviour between form.activate in vb6.0 and form.activated in vb.net. How can I simulate the behaviour of vb version in vb.net.
I have read that the form.activated fires even when the control goes to a different application and comes back.
Well, in VB6, move off a form and CLICK and the other goes to the top. It's the same in VB.Net. The bottom form won't ACTIVATE until you click it, or TAB to it (in a DIFFERENT app)
Hi,
Sorry, I am not able to get you. what I mean is:
You have a forms application(vb.net) with 2 forms and another application(eg: outlook client )opened. What I am trying to achieve is: form1.activate event should fire when the control comes only form2 and not from the other application(egutlook client). It should be the same with the deactivate event. It happens like this in vb6 but not in vb.net
You'd have to intercept Window calls, to prevent Windows form passing control to your app, unless it came from where you expected it. Not too simple, though
Bookmarks