Re: Run a method after a form appears

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Alex Yakhnin [MVP] (a.yakhnin_at_online.att.net)
Date: 11/10/04


Date: Wed, 10 Nov 2004 07:49:05 -0800

You might want to run your "method" on a different thread. Don't forget to
use Control.Invoke when updating progress bar from a separate thread.

HTH... Alex

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com
www.opennetcf.org
"Stew" wrote:
> Hello Alex,
> 
> Thx for your reply but the form appears on screen only after load
> event. It's the same problem.
> 
> Steve
> 
> Alex Yakhnin [MVP] <a.yakhnin@online.att.net> wrote in message news:<F69522DF-B6F1-476D-8350-368BE00E1D66@microsoft.com>...
> > Try the form's Load event.
> > 
> > --
> > Alex Yakhnin, .NET CF MVP
> > www.intelliprog.com
> > www.opennetcf.org
> > 
> > 
> > "Stew" wrote:
> > 
> > > Hello,
> > > 
> > > I have a form, with a progress bar, which execute some operations like
> > > checking update before launching another form.
> > > 
> > > I want update this progress bar but I don't know how launch my method
> > > after the form appears on screen. I tried all events but they launched
> > > my method before the form appears. I believe in .Net framework, there
> > > is an event on Form show.
> > > 
> > > How can I do it? I am using compact framework 2.0 beta.
> > > 
> > > Example
> > > 
> > > public FormWelcome()
> > > {
> > >    InitializeComponent();
> > >    CheckUpdate() ;
> > > }
> > > 
> > > Thanx for your help.
> > > 
> > > Steve
> > >
>