|
-
May 5th, 2005, 03:15 PM
#1
Thread Starter
Junior Member
Need help with main form loading after splash screen
im using VB.NET and i used one of the forums members' splash screen example but now when the main form loads none of the buttons or labels show up. please help. Im at home right now so i dont have vb.net on my computer
thanks for any help
-
May 5th, 2005, 04:44 PM
#2
Re: Need help with main form loading after splash screen
I think you need to post code to get help on tis one.
kevin
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
May 5th, 2005, 05:02 PM
#3
Hyperactive Member
Re: Need help with main form loading after splash screen
Perhaps an error in instantiating your form?
I'm thinking you might have simply declared a new form without setting it to reference your form, thus displaying a blank form and leaving yours sitting on the shelf.
.....Hope I got that right
Kal
-
May 5th, 2005, 05:43 PM
#4
Fanatic Member
Re: Need help with main form loading after splash screen
Post some code and I may be able to help. I think that might of been my code you downloaded.
In life you can be sure of only two things... death and taxes. I'll take death.
-
May 6th, 2005, 08:02 AM
#5
Thread Starter
Junior Member
Re: Need help with main form loading after splash screen
VB Code:
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Dim frmTemp As Form2 'Make a reference to the splash here.
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
frmTemp = New Form2 'Create an instance of the splash
Timer1.Interval = 4000 'Set how long you want it to show for.
Timer1.Start() 'Start the timer.
frmTemp.ShowDialog() 'Show the form modally.
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Timer1 As System.Windows.Forms.Timer
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
'
'Timer1
'
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(292, 266)
Me.Name = "Form1"
Me.Text = "Top Video Games"
End Sub
#End Region
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Timer1.Stop()
frmTemp.Hide()
frmTemp.Dispose()
End Sub
End Class
End Class
-
May 6th, 2005, 12:10 PM
#6
Fanatic Member
Re: Need help with main form loading after splash screen
Go to this thread http://www.vbforums.com/showthread.p...=splash+screen
and download SplashScreen.zip towards the bottom.
That should get you headed in the right direction.
Good luck.
In life you can be sure of only two things... death and taxes. I'll take death.
-
May 6th, 2005, 02:24 PM
#7
Thread Starter
Junior Member
Re: Need help with main form loading after splash screen
ok thanks for all the help. i will try it monday at school.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|