473,473 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Blinking Text

4 New Member
Hi I am Pankaj. I need help in displaying blinking text on a label or in a text box.I have just started learning Visual Basic.Please help
Thanks
Pankaj
Sep 6 '07 #1
6 6735
hariharanmca
1,977 Top Contributor
Hi I am Pankaj. I need help in displaying blinking text on a label or in a text box.I have just started learning Visual Basic.Please help
Thanks
Pankaj
You can use Timer Control and change the intervel according to the speed
Sep 6 '07 #2
Robbie
180 New Member
As Hari said, a timer's your best bet, but since you're new to VB, I'll explain a little more...
Add a timer to your form. Set its Interval to something around 250 (this is in milliseconds). In other words, make this number lower to make the text flash faster.

Pretending that the label which you want to flash on/off is called Label1, in the timer's main event (i.e. when you double-click on it), type this:

Label1.Visible = Not Label1.Visible

That will swap it's Visible property between True and False every time it comes to that line.

EDIT: Make sure the timer's Enabled property is set to True! (You can change it to False to stop the text flashing - just remember to set Label1.Visible back to True, in case it stops when it's invisible.)
Sep 6 '07 #3
hariharanmca
1,977 Top Contributor
As Hari said, a timer's your best bet, but since you're new to VB, I'll explain a little more...
Thank Robbie (Do not have time to explain more).
Sep 7 '07 #4
Killer42
8,435 Recognized Expert Expert
As Hari said, a timer's your best bet, but since you're new to VB, I'll explain a little more...
Thanks Robbie.

One handy technique I like to use in a case like this is to take advantage of the .Tag property to identify labels (or other controls) to blink. The idea is, each time your timer fires, loop through all the controls on the form. Check their Tag property and if you see a particular value in there, then switch the visibility (or background colour, or whatever you choose) of that control.
Sep 8 '07 #5
Robbie
180 New Member
Thanks Robbie.

One handy technique I like to use in a case like this is to take advantage of the .Tag property to identify labels (or other controls) to blink. The idea is, each time your timer fires, loop through all the controls on the form. Check their Tag property and if you see a particular value in there, then switch the visibility (or background colour, or whatever you choose) of that control.
Hey, that's a great idea!
I have to use that technique for something now (not for flashing text, but for something which needs to be done for many controls but I don't want to hard-code for every single one).
Sep 8 '07 #6
Ali Rizwan
925 Contributor
Hi I am Pankaj. I need help in displaying blinking text on a label or in a text box.I have just started learning Visual Basic.Please help
Thanks
Pankaj
Hi Pankaj
Check this thing and feed me back.
Here is a url where I have attached a file. Download it and try to modify as your needs
Blinking text
Sep 8 '07 #7

Sign in to post your reply or Sign up for a free account.

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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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 project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.