473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Blinking Text

Is there a way to make text blink in a text box or on a label?

TIA

Brad
Nov 21 '05 #1
7 19481
Brad,

You mean something as this?

\\\
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
_
Handles MyBase.Load
Dim aTimer As New System.Timers.Timer
AddHandler aTimer.Elapsed, AddressOf OnTimedEvent
Me.Label1.ForeColor = Drawing.Color.White
aTimer.Interval = 500
Me.Label1.Text = "I am up again"
Me.Label1.BackColor = Drawing.Color.Red
aTimer.Enabled = True
End Sub
Private Sub OnTimedEvent(ByVal source As Object, ByVal e As _
System.Timers.ElapsedEventArgs)
If Me.Label1.BackColor.ToArgb = Drawing.Color.Blue.ToArgb Then
Me.Label1.Text = "I am up again"
Me.Label1.BackColor = Drawing.Color.Red
Else
Me.Label1.Text = "I am to bed"
Me.Label1.BackColor = Drawing.Color.Blue
End If
End Sub
///
I hope this helps a little bit?

Cor

"Brad Markisohn" <db*********@indesign-llc.com> schreef in bericht
news:ee**************@tk2msftngp13.phx.gbl...
Is there a way to make text blink in a text box or on a label?

TIA

Brad

Nov 21 '05 #2

"Brad Markisohn" <db*********@indesign-llc.com> wrote in message
news:ee**************@tk2msftngp13.phx.gbl...
Is there a way to make text blink in a text box or on a label?


I recommend reading this first:
http://digilander.libero.it/chiedilo...al.htm#visual2
Nov 21 '05 #3
Jeff,

Nice link, I have basicly the same ideas as in that article.

Cor
Nov 21 '05 #4
* "Brad Markisohn" <db*********@indesign-llc.com> scripsit:
Is there a way to make text blink in a text box or on a label?


Add a 'System.Windows.Forms.Timer' to your form, set its interval to
500, for example, add a handler to the timer's 'Tick' event and type
this code:

\\\
Me.Label1.Visible = Not Me.Label1.Visible
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #5
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2o************@uni-berlin.de...
* "Brad Markisohn" <db*********@indesign-llc.com> scripsit:
Is there a way to make text blink in a text box or on a label?


Add a 'System.Windows.Forms.Timer' to your form, set its interval to
500, for example, add a handler to the timer's 'Tick' event and type
this code:

\\\
Me.Label1.Visible = Not Me.Label1.Visible
///


Sweet.
Nov 21 '05 #6
"Ricky W. Hunt" <rh*****@hotmail.com> wrote in message
news:l3cTc.145012$eM2.79933@attbi_s51...
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2o************@uni-berlin.de...
* "Brad Markisohn" <db*********@indesign-llc.com> scripsit:
Is there a way to make text blink in a text box or on a label?


Add a 'System.Windows.Forms.Timer' to your form, set its interval to
500, for example, add a handler to the timer's 'Tick' event and type
this code:

\\\
Me.Label1.Visible = Not Me.Label1.Visible
///


BTW, I went and fooled around with that. If you use that with a textbox the
whole box blinks. I came up with this:

Public Class Form1

Private fore, back As Color

Private switch As Boolean

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

fore = txtDisplay.ForeColor

back = txtDisplay.BackColor

End Sub

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

txtDisplay.ForeColor = IIf(switch, fore, back)

switch = Not switch

End Sub

End Class
Nov 21 '05 #7

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:e4**************@tk2msftngp13.phx.gbl...
Nice link, I have basicly the same ideas as in that article.


Yes, I agree with MOST of them. I think they went a little overboard in a
couple of places, but overall it's right on the mark.

And some of it is just plain funny.
Nov 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Hugo | last post by:
I am building a website. Now I want to put a couple of lines on my page which I want to blink. <blink> is not supported for shapes/lines and I want to decide myself if i want a line to blink. What...
5
by: Markus | last post by:
Blinking control Perhaps my question is not exactly an Access question, but may somebody might give me an answer.i have a very important control on my report, called "Stockflow" and in case...
2
by: Sharon | last post by:
The ErrorProvider text is also blinking together with the icon. It’s making the reading of the error description very uncomfortable. Is there a way to prevent the text from blinking while the...
1
by: Sharon | last post by:
The ErrorProvider text is also blinking together with the icon. It’s making the reading of the error description very uncomfortable. Is there a way to prevent the text from blinking while the...
4
by: Lam | last post by:
Hi I try to make the text showm in the asp:Label to have some dynamic effect such as blinking, scrolling. Does any one know how to do that? Thank
2
by: Ling | last post by:
Hi, I guessed this is a weird question but it really bothers me. I created a web page w/ asp.net, have a menu on the top and a listbox right below it. When I try to navigate the menu, the...
2
by: tony wong | last post by:
i wish to make the button blinking for 5 times at 1 second interval. how come i cannot see the blinking effect? is there any screen update function? Thanks. ******************************...
3
by: fbergroth | last post by:
Hi, I'm quite new to C# allthough I've been programming in other languages for quite a while. I'd like to change the blinking cursor inside a TextBox, I guess I must derive the class and...
5
by: michels287 | last post by:
Right now I have a touchscreen with a virual keyboard. I would like to create arrow keys. If the user messed up the inputted text, he can move the blinking cursor left one space at a time between...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.