Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


Visual Basic Programming Code Examples

Visual Basic > API and Miscellaneous Code Examples

Give your application a splashscreen

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Give your application a splashscreen 'Splash screen vb3/4 'make a form; put an image_control on it 'no caption, no clipcontrols, no systembox 'borderstyle=fixed 'vb4 = shownintaskbar=no 'put the code in the form_load event Sub Form_Load() Top = (Screen.Height * 0.9) / 2 - Height / 2 Left = Screen.Width / 2 - Width / 2 Me.Show 'show this form Me.Refresh Load Form2 'load first form of youre application 'meanwhile it's doning all the code in youre 'form2.load_event Form2.Show 'ready? show form Unload Form1 'unload this one End Sub 'ALSO: 'Make sure that youre StatupForm is form1 'Check it on this way: 'Tools->Options->Project (vb4) 'Options->Project->StartUp Form (vb3) Return