@flandria: Dat zou ik dus niet doen omdat:
1 : Het er nogal houterig uitziet;
2 : Je onnodig veel componenten toevoegt.
Ik zat eerder aan zoiets te denken:
Code:
[cpp]Private toBottom As Boolean = True
Private Sub Timer1_Tick() Handles Timer1.Tick
''//Naar beneden
If toBottom Then
Label1.Top += 1
If Label1.Location.Y = Me.Size.Height - 50 Then toBottom = False
Else
''//Naar boven
Label1.Top -= 1
If Label1.Location.Y = 0 Then toBottom = True
End If
End Sub
Private Sub Button1_Click() Handles Button1.Click
''//Timer interval staat op 100 ms
If Button1.Text = "Start!" Then Timer1.Start() : Button1.Text = "Stop!" _
Else Timer1.Stop() : Button1.Text = "Start!"
End Sub[/cpp]