hi i've recently started with visual basic express and i ned help.
i have a timer and a button when the app launchs the button is invisible which i've got so far, but then after ten seconds i want the button to appear but i don't know how to do it
hi i've recently started with visual basic express and i ned help.
i have a timer and a button when the app launchs the button is invisible which i've got so far, but then after ten seconds i want the button to appear but i don't know how to do it
timer and button visibility
Michael (MCPNS)
kokain
Try this is working fine to me.
Private
counter As Integer = 0Private Sub InitializeTimer()
' Run this procedure in an appropriate event.
counter = 0
Timer1.Interval = 1000
Timer1.Enabled = True
Timer1.strat()
End Sub
You can use this on a load of a form. Interval is set to 1 sec
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
counter=counter+1
if counter = 10 then
button.visible=True
endif
End Sub
Hope to be of some help.
Best Regards.
dp
Alex V.