473,434 Members | 1,431 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,434 software developers and data experts.

Blinking Text

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 6733
hariharanmca
1,977 1GB
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 100+
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 1GB
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 Expert 8TB
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 100+
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 512MB
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...
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
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
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...

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.