hi am quite new to vb and i need a lil help
basically i need to refresh a panel in my form everytime a button is pressed and a counter indicating the number of times the button has been pushed
i use the following
panel.refresh()
counter += 1
textbox.text = counter
but it only does it once!!
Secondly on the same form i need to have a panel to become visible every 2 minutes remain visible for 1 min n vanish i need to do this for 10 mins
currently i have this
Dim i As Integer
Dim limit As Integer
limit = Int(Rnd() * 10)
If limit = 3 Or limit = 5 Then
For i = 1 To 50
Panel2.Visible = True
Next i
Else
Panel2.Visible = False
End If
but obviously it anit workin!!
basically i need to refresh a panel in my form everytime a button is pressed and a counter indicating the number of times the button has been pushed
i use the following
panel.refresh()
counter += 1
textbox.text = counter
but it only does it once!!
Secondly on the same form i need to have a panel to become visible every 2 minutes remain visible for 1 min n vanish i need to do this for 10 mins
currently i have this
Dim i As Integer
Dim limit As Integer
limit = Int(Rnd() * 10)
If limit = 3 Or limit = 5 Then
For i = 1 To 50
Panel2.Visible = True
Next i
Else
Panel2.Visible = False
End If
but obviously it anit workin!!