Results 1 to 7 of 7

Thread: Need help with main form loading after splash screen

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    20

    Exclamation 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

  2. #2
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    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

  3. #3
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Maine, USA
    Posts
    277

    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

  4. #4
    Fanatic Member cpatzer's Avatar
    Join Date
    Sep 2004
    Posts
    537

    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.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    20

    Re: Need help with main form loading after splash screen

    VB Code:
    1. Public Class Form1
    2.         Inherits System.Windows.Forms.Form
    3.  
    4.  
    5. #Region " Windows Form Designer generated code "
    6.  
    7.         Dim frmTemp As Form2 'Make a reference to the splash here.
    8.  
    9.         Public Sub New()
    10.             MyBase.New()
    11.  
    12.             'This call is required by the Windows Form Designer.
    13.             InitializeComponent()
    14.  
    15.             frmTemp = New Form2   'Create an instance of the splash
    16.  
    17.             Timer1.Interval = 4000 'Set how long you want it to show for.
    18.             Timer1.Start() 'Start the timer.
    19.             frmTemp.ShowDialog() 'Show the form modally.
    20.  
    21.             'Add any initialization after the InitializeComponent() call
    22.  
    23.         End Sub
    24.  
    25.         'Form overrides dispose to clean up the component list.
    26.         Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
    27.             If disposing Then
    28.                 If Not (components Is Nothing) Then
    29.                     components.Dispose()
    30.                 End If
    31.             End If
    32.             MyBase.Dispose(disposing)
    33.         End Sub
    34.  
    35.         'Required by the Windows Form Designer
    36.         Private components As System.ComponentModel.IContainer
    37.  
    38.         'NOTE: The following procedure is required by the Windows Form Designer
    39.         'It can be modified using the Windows Form Designer.  
    40.         'Do not modify it using the code editor.
    41.         Friend WithEvents Timer1 As System.Windows.Forms.Timer
    42.         <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    43.             Me.components = New System.ComponentModel.Container
    44.             Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
    45.  
    46.             '
    47.             'Timer1
    48.             '
    49.             '
    50.             'Form1
    51.             '
    52.             Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
    53.             Me.ClientSize = New System.Drawing.Size(292, 266)
    54.             Me.Name = "Form1"
    55.             Me.Text = "Top Video Games"
    56.  
    57.  
    58.  
    59.         End Sub
    60.  
    61. #End Region
    62.  
    63.         Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    64.             Timer1.Stop()
    65.             frmTemp.Hide()
    66.             frmTemp.Dispose()
    67.         End Sub
    68.     End Class
    69.  
    70. End Class

  6. #6
    Fanatic Member cpatzer's Avatar
    Join Date
    Sep 2004
    Posts
    537

    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.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    20

    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
  •  



Click Here to Expand Forum to Full Width