timer and button visibility

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



Answer this question

timer and button visibility

  • Michael (MCPNS)

    thanks very much worked like a charm
  • kokain

    Try this is working fine to me.

    Private counter As Integer = 0

    Private 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.

    i have another request on the same form i have a progress bar would it be possible to link the timer progress with the progress bar
  • timer and button visibility