Re: form.activated in vb.net
Quote:
Originally Posted by
nidabp
I have read that the form.activated fires even when the control goes to a different application and comes back.
Nope. This fires whenever a Form is activated, not the application as such
Re: form.activated in vb.net
Hi,
I got to read from the below link;
http://vbmigration.codearchitects.co...ols.aspx?Id=10
that there is some difference in which the form.activate(vb6) and form.activated(vb.net) behave
Thanx
Re: form.activated in vb.net
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)
Re: form.activated in vb.net
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(eg:outlook client). It should be the same with the deactivate event. It happens like this in vb6 but not in vb.net
Thanx
Re: form.activated 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