I want to do some code once a form has been loaded and displayed, every
time when the form is displayed, not just the first time. How can I do
this?

>From what I've read, the Form_Load method is only executed once, after
the form has been created. I've tried putting a MessageBox.Show()
inside the OnActivated method, but it just continually pops up a new
box as soon as I close the MsgBox.

Re: How to execute code after form displayed (every time)? by Ginny

Ginny
Tue Jun 21 13:09:09 CDT 2005

I already answered this question on the compactframework newsgroup.

Ginny Caughey
.NET Compact Framework MVP

"anon@yahoo.com" <briforge@gmail.com> wrote in message
news:1119377085.680009.159890@g44g2000cwa.googlegroups.com...
>I want to do some code once a form has been loaded and displayed, every
> time when the form is displayed, not just the first time. How can I do
> this?
>
>>From what I've read, the Form_Load method is only executed once, after
> the form has been created. I've tried putting a MessageBox.Show()
> inside the OnActivated method, but it just continually pops up a new
> box as soon as I close the MsgBox.
>



Re: How to execute code after form displayed (every time)? by anon

anon
Tue Jun 21 13:41:12 CDT 2005

Thanks! Sorry about the double posting, but I haven't been able to
determine the difference between the
microsoft.public.pocketpc.developer and
microsoft.public.dotnet.framework.compactframework groups. Could you
shed some light on the difference, or explain which topics should be in
one or the other?


Re: How to execute code after form displayed (every time)? by Ginny

Ginny
Tue Jun 21 13:52:45 CDT 2005

The main difference between the pocketpc.developer and compactframework
groups is that the compactframework group is intended to handle .Net Compact
Framework related questions, whether for PocketPC, SmartPhone or WindowsCE.
The pocketpc.developer group handles questions concerning native code
development as well as .NetCF development. Obviously there are areas of
overlap, and either newsgroup would be appropriate for your question,
although managed code questions seem to get answered quicker in the
compactframework newsgroup.

HTH,

Ginny

"anon@yahoo.com" <briforge@gmail.com> wrote in message
news:1119379272.038793.116650@z14g2000cwz.googlegroups.com...
> Thanks! Sorry about the double posting, but I haven't been able to
> determine the difference between the
> microsoft.public.pocketpc.developer and
> microsoft.public.dotnet.framework.compactframework groups. Could you
> shed some light on the difference, or explain which topics should be in
> one or the other?
>