Visible textbox after a while

toto06

New member
Joined
Sep 6, 2011
Messages
2
Programming Experience
Beginner
Hello every body i need to make a textbox in my windowsform after 3 seconds please help me .

Thanks all
 
Just use a timer ticker to visible the textbox when the desire time reached.
 
another option, if you don't already have a textbox in your form, is to add it to the forms controls collection after the timer goes off.

ex:
Public Class Form1
    Private WithEvents t As New Timer With {.Interval = 3000}

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        t.Start()
    End Sub

    Private Sub tAddTextBox_tick() Handles t.Tick
        Me.Controls.Add(New TextBox() With {.Text = "something...", .Location = New Point(50, 50)})
        t.Stop()
    End Sub
End Class
 
Back
Top