Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Form Flicking


Message #1 by "Michel Medawar" <mmedawar@t...> on Tue, 22 Jan 2002 22:51:56 +0200
Hi
Start a timer object's timer event on form load
Do half the processing in the Timer event
Tell me whether it speeds up the form loading
This is a trick to start the processing on different
threads.
For eg.
If in Form_Load,
Process 1
Process 2 
Process 3
Process 4

Then, change it to,
Timer1.Enabled=true
Process 1
Process 2 
 
And in Timer1_Timer,
Process 3
Process 4

Shreekar
--- "Whitehead, Crane" <CWhitehead@h...>
wrote:
> Have tried adding a splash screen to your project. 
> This will not speed up
> the loading in any way shape or form, however it
> does make it more
> presentable.  
> 
> Just a thought.
> 
> Thanks
> 
> Crane Whitehead
> Programmer / Analyst
> cwhitehead@h...
>  xxx.xxx.xxxx
>  
> Healthaxis
> Computing and Network services
> http://www.healthaxisasg.com
> 
> 
>  -----Original Message-----
> From: 	Matt White [mailto:Gaffa@r...] 
> Sent:	Thursday, January 24, 2002 7:47 PM
> Subject:	Re: Form Flicking
> 
> Except that the first time you reference a form, the
> Load event fires
> for that form....
> 
> Matt
> 
> -----Original Message-----
> From: Randy Cornish [mailto:rlcornish@c...] 
> Sent: Friday, 25 January 2002 12:17
> To: professional vb
> Subject: [pro_vb] Re: Form Flicking
> 
> 
> The slickest way to do this is NEVER to call a
> form's .Load or .Show 
> method directly.  Inside the form, create a
> .Display() Public method.  
> Any code that uses the form should ONLY call the
> .Display method.  Then,
> 
> inside .Display(), do something similar to this:
> 
>    Public Sub Display()
>    
>       Me.Load
>       PopulateMe()          '* internal routine to
> load controls
>       Me.Show vbModal       '* or not, it doesn't
> matter
> 
>                             '* add error-handling
> code of course
>    End Sub
> 
> This has the side benefit of being able to pass as
> many paramters as you
> 
> desire thru the method signature of .Display()
> (something you cannot do 
> with Form1.Show).  It also make serror-handling
> easier.
> 
> R
> 
> > I was wondering if there's a way to show a form
> > in vb without seeing the little flicking it does
> when=20 loading its 
> > controls especially when it contains multiple
> frames controls.
> > 
> > Thanks
> > 
> > Michel Medawar
> 
> to unsubscribe send a blank email to .
> 
$subst('Email.Unsub').


__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

  Return to Index