Home All Groups Group Topic Archive Search About

Instead of form_activate()

Author
20 Apr 2006 12:03 AM
Adam Honek
In VB6 and earlier we had a form_activate() event whereby it always fired
every
time the form gained was focussed.

In VB.net I don't see it and we have a _activate() event.

What event would I use for the background form to refresh once the
foreground
form has been closed?

_Enter

_Shown

???

TU,
Adam

Author
20 Apr 2006 12:13 AM
Herfried K. Wagner [MVP]
"Adam Honek" <AdamHo***@Webmaster2001.freeserve.co.uk> schrieb:
> In VB6 and earlier we had a form_activate() event whereby it always fired
> every
> time the form gained was focussed.
>
> In VB.net I don't see it and we have a _activate() event.

Handle the form's 'Activated' event instead.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
20 Apr 2006 12:57 AM
Adam Honek
Indeed, not sure why I didn't think this up myself :(

Thanks,
Adam

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:eAolv8AZGHA.4120@TK2MSFTNGP04.phx.gbl...
> "Adam Honek" <AdamHo***@Webmaster2001.freeserve.co.uk> schrieb:
>> In VB6 and earlier we had a form_activate() event whereby it always fired
>> every
>> time the form gained was focussed.
>>
>> In VB.net I don't see it and we have a _activate() event.
>
> Handle the form's 'Activated' event instead.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>