Hello all! I want to make label beside label/etc. For example, after i clicked button then label appear beside its button , and after 5 second / less, i want to make the new label dissapear / erased . Visual Studio, vb.net

Thanks Before :)

Private Sub Button1_Click(ByVal sender As System.Object,ByVal as System.EventArgs) Handles Button1.Click

Progressbar1.value = 1
Timer1.enabled = true
call Timer1_Tick(sender, e)

End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

me.Progressbar1.value += 1

if me.Progressbar1.value = 5 then

me.label1.visible = false

End if

End Sub

Try to use a timer and a progressbar to manipulate the disapperance of the label.

Private Sub Button1_Click(ByVal sender As System.Object,ByVal as System.EventArgs) Handles Button1.Click
 
Progressbar1.value = 1
Timer1.enabled = true
call Timer1_Tick(sender, e)
 
End Sub
 
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
 
me.Progressbar1.value += 1
 
if me.Progressbar1.value = 5 then
 
me.label1.visible = false
 
me.timer1.enable = false

End if
 
End Sub

How to make new label after event click with code? And include its event (disappear after 5 second), but thanks :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.