Windows Develop Bookmark and Share   
 index > Windows Forms General > Starting an Application
 

Starting an Application

I would like some tips and tricks about starting an application that needs a splash screen because of the size of the main form.  Many of the things that I have tried gives me too much flicker or loads chunk by chunk.  Is there a "Goodhousekeeping" approved method of starting an App?

Thanks
MigrationUser 1  Thursday, February 20, 2003 10:52 AM
I found this helpful to get me started on mine:

http://www.reflectionit.nl/Splash.aspx
MigrationUser 1  Thursday, February 20, 2003 1:39 PM
Thanks that one way-(Flicker is still in some of my controls on the main form)- now are there others-- Did Big Daddy (Microsoft) have a way that they had in mind when they developed .Net?

In VB6 I used to load the form before I did a show-- is this lost in Net?
MigrationUser 1  Thursday, February 20, 2003 2:25 PM
Not sure if this will help, but for any forms you have some flickering with you could try putting this in the constructor of the form

Me.SetStyle(ControlStyles.DoubleBuffer, True)
MigrationUser 1  Thursday, February 20, 2003 2:33 PM
FWIW, if that is the problem, just setting the DoubleBuffer style to True won't be enough--you must also set the AllPaintingInWMPaint and UserPaint bits for this to work, as in:

Me.SetStyle(ControlsStyles.DoubleBuffer Or ControlStyles.AllPaintinginInWMPaint Or ControlStyles.UserPaint, True)

From the online help:

Drawing is performed in a buffer, and after it completes, the result is output to the screen. Double-buffering prevents flicker caused by the redrawing of the control. To fully enable double-buffering, you must also set the UserPaint and AllPaintingInWmPaint bits to true.
MigrationUser 1  Friday, February 21, 2003 9:21 AM
Try to Add initialisation code to the form you want to load in Sub New()
This Sub is called when you do Dim frm as new Form1(). That will load the form but doesn't display it.
MigrationUser 1  Sunday, February 23, 2003 8:47 AM

You can use google to search for other answers

Custom Search

More Threads

• Issue Updating Graphics
• Question!!!Who can give me a hand -II
• CheckedListBox with different color fonts for items
• Replacing Parent Form with Child Form
• drawstring
• How to get the size of the up/down arrows of the Scrollbar?
• Newbie staff VB.NET
• Overlaping
• How to: part of the form is opaque, and the rest may have a 50% opacity
• SplitContainer's OnPaintBackground ClientRect clipping problem