Results 1 to 19 of 19

Thread: [RESOLVED] Splash Screen

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Resolved [RESOLVED] Splash Screen

    I have created a splash screen for my app, added a progress bar on the bottom and a timer.

    Added the following code (complete) and get the following error message:
    Run-time error ' 380':
    Invalid property value

    highlighted:
    VB Code:
    1. ProgressBar1.Value = ProgressBar1.Value + 1

    complete code:
    VB Code:
    1. Private Sub Form_Load()
    2.     Timer1.Interval = 1000
    3.    
    4.     With ProgressBar1
    5.         .Max = 10
    6.         .Value = 0
    7.     End With
    8. End Sub
    9.  
    10. Private Sub Timer1_Timer()
    11.     ProgressBar1.Value = ProgressBar1.Value + 1
    12.    
    13.     If ProgressBar1.Value = ProgressBar1.Max Then
    14.     frmTranslator.Show
    15.     frmSplash.Hide
    16.     End If
    17. End Sub
    18.  
    19. Private Sub Form_Click()
    20.     Unload Me
    21.     frmTranslator.Show
    22. End Sub
    23.  
    24. Private Sub Form_KeyPress(KeyAscii As Integer)
    25.     Unload Me
    26.     frmTranslator.Show
    27. End Sub

    Please advise.
    Last edited by BrailleSchool; May 7th, 2005 at 01:46 AM.

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