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
Printable View
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
I think you need to post code to get help on tis one. :)
kevin
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
Post some code and I may be able to help. I think that might of been my code you downloaded.
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
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.
ok thanks for all the help. i will try it monday at school.