hilfe

07/31/2010 19:22 kevios10#1
hallo epvp ich hab da ma ne frage ich hab ja 1x progressbar 1x button 1x timer

denn mache ich den code in den timer:

Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        ProgressBar1.Value += 1
        If ProgressBar1.Value = 100 Then
            Timer1.Stop()
        End If
    End Sub
denn hab ich ne frage wenn die progressbar value=100 is soll eine msgbox("Fertig") kommen wie mahce ich das wenn ich das so mache

Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        ProgressBar1.Value += 1
        If ProgressBar1.Value = 100 Then
            Timer1.Stop()
        End If
msgbox("Fertig")
    End Sub
kommen da bestimmt 100Fenster mit Fertig.

Hilfe pls ^^
07/31/2010 19:40 scenebase#2
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        ProgressBar1.Value += 1
        If ProgressBar1.Value = 100 Then
            Timer1.Stop()
            msgbox("Fertig")
        End If
    End Sub
Versuch es so.