Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / August 2007

Tip: Looking for answers? Try searching our database.

Forms - Shown() method or similar

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
davebythesea - 22 Aug 2007 10:20 GMT
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
Peter Foot [MVP] - 22 Aug 2007 12:09 GMT
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

Signature

Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

> Dear List,
>
[quoted text clipped - 4 lines]
> Thanks,
> Dave
Neil Cowburn - 22 Aug 2007 12:13 GMT
The Load event should be sufficient.

--
Neil Cowburn
Principal Partner
OpenNETCF Consulting

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

> Dear List,
>
[quoted text clipped - 4 lines]
> Thanks,
> Dave
davebythesea - 22 Aug 2007 14:50 GMT
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

> The Load event should be sufficient.
>
[quoted text clipped - 14 lines]
> > Thanks,
> > Dave
Neil Cowburn - 22 Aug 2007 15:06 GMT
You can force the form to be made visible in the Load event handler and set
the wait cursor there too.

--
Neil Cowburn
Principal Partner
OpenNETCF Consulting

> 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
[quoted text clipped - 32 lines]
>> > Thanks,
>> > Dave
davebythesea - 22 Aug 2007 15:32 GMT
Did anyone ever tell you your a genius?

Marvelous!

Thanks!

> You can force the form to be made visible in the Load event handler and set
> the wait cursor there too.
[quoted text clipped - 40 lines]
> >> > Thanks,
> >> > Dave

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.