Forms - Shown() method or similar

G

Guest

Dear List,

I need an event to be fired after a Form is first Shown. Is there something
we can do to initiate an event at this stage?

Thanks,
Dave
 
P

Peter Foot [MVP]

Form itself has events for Load and Activate. Where exactly do you want to
handle the events - within the form itself or elsewhere in some other class?

Peter
 
G

Guest

What I want to do is populate a ListView once the form is visible, so when
the Form becomes visible I call a Web service and check for new data to
download, the data I download I present in a ListView to show a summary of
the new stuff I've downloaded. I want that to take place when the form is
visible, and then display the Waiting cursor so the user knows somethings
actually happening instead of having no form shown and waiting, wondering
whats going on. So thats why I was hoping for a Shown event, so I can fire
off the Web Service call after the Form is defiently Shown and visible to the
user. I might give Load another go, but I thought the visibility of the Form
would remain hidden until the Load event is finished?

Well, I 'll give it a go,

Cheers,
Dave
 
N

Neil Cowburn

You can force the form to be made visible in the Load event handler and set
the wait cursor there too.
 
M

Michael Aebi

How do you do that?



Neil Cowburn wrote:

You can force the form to be made visible in the Load event handler and set
22-Aug-07

You can force the form to be made visible in the Load event handler and se
the wait cursor there too

-
Neil Cowbur
Principal Partne
OpenNETCF Consulting

Previous Posts In This Thread:

Forms - Shown() method or similar
Dear List

I need an event to be fired after a Form is first Shown. Is there somethin
we can do to initiate an event at this stage

Thanks
Dave

Form itself has events for Load and Activate.
Form itself has events for Load and Activate. Where exactly do you want to
handle the events - within the form itself or elsewhere in some other class

Pete

--
Peter Foo
Microsoft Device Application Development MV
www.peterfoot.net | www.inthehand.co
In The Hand Ltd - .NET Solutions for Mobilit


The Load event should be sufficient.
The Load event should be sufficient

-
Neil Cowbur
Principal Partne
OpenNETCF Consultin

http://www.opennetcf.com
http://www.smartdeviceframework.com/

What I want to do is populate a ListView once the form is visible, so when the
What I want to do is populate a ListView once the form is visible, so when
the Form becomes visible I call a Web service and check for new data to
download, the data I download I present in a ListView to show a summary of
the new stuff I've downloaded. I want that to take place when the form is
visible, and then display the Waiting cursor so the user knows somethings
actually happening instead of having no form shown and waiting, wondering
whats going on. So thats why I was hoping for a Shown event, so I can fire
off the Web Service call after the Form is defiently Shown and visible to the
user. I might give Load another go, but I thought the visibility of the Form
would remain hidden until the Load event is finished

Well, I 'll give it a go

Cheers
Dav

:

You can force the form to be made visible in the Load event handler and set
You can force the form to be made visible in the Load event handler and se
the wait cursor there too

-
Neil Cowbur
Principal Partne
OpenNETCF Consulting

Re: Forms - Shown() method or similar
Did anyone ever tell you your a genius

Marvelous

Thanks

:


Submitted via EggHeadCafe - Software Developer Portal of Choice
File-Based Cache for Web and non-Web Apps plus Extend ASP.NET 4.0 OutputCacheProvider
http://www.eggheadcafe.com/tutorial...dfe-9f7a28f4d58e/filebased-cache-for-web.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top