Once your main form has loaded, Close() it. Then, all you have to do is create an instance of your form, Show() it, and keep a reference to it while you do your startup initialization. This could be in your application's main() routine, or possibly in your main application form's Load handler wherever you're creating large expensive objects, reading settings from the hard drive, and generally taking a long time to do stuff behind the scenes before the main application screen displays. These two tasks need to occur on opposite sides of the main startup logic of your program. Then, you need to decide where to show it and where to dismiss it. Set the form's MinimumSize and MaximumSize to be the same as its initial Size.Set the FormBorderStyle property to "None".Set the StartPosition property to "CenterScreen".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |