[snippet]blinking text
Use this board to post your code snippets - tips and tricks
4 posts
Page 1 of 1
hello guys
i am up with a small snippet its just a blinking text in vb.net
you just need to add a timer and a label
double click timer and add this code
and now double click your form and add this code
enjoy wahooo;
i am up with a small snippet its just a blinking text in vb.net
you just need to add a timer and a label
double click timer and add this code
Code: Select all
Me.Label1.Visible = Not Me.Label1.Visible
and now double click your form and add this code
Code: Select all
heres the full codeWith Timer1
.Interval = 500
.Enabled = True
End With
Code: Select all
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
With Timer1
.Interval = 500
.Enabled = True
End With
End Sub
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Me.Label1.Visible = Not Me.Label1.Visible
End Sub
End Class
enjoy wahooo;
Find my programs on Softpedia
Excuse me, Shim. But what's the "Not Me" ?
Is it part of the code that I type?
Is it part of the code that I type?
Yes "not me" is like saying if visible then its not hence the blink it is needed in the code and as timer1 ticks then if it's visible it's not vice versa good share shim.
<a href="http://www.points2shop.com/s/xbox_point ... 5082"><img src="http://points2shop.com/images/promotion ... ricoxg.gif" border="0"/></a>
"Me" stand for the parent form1 that a control is on / bound to.
4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023