0

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 :)

2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by nore
0
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
0

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

0
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
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.