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

Home Posts Topics Members FAQ

Blink label's text

Hi,

How can I get a blinking text for a lable.
Iam working in a window appln using framework 2.0 and VS 2005.
Thanks in advance,
Bharti Kumar.

Jul 10 '06 #1
4 8551
You can add a Timer Control to your form, set the desired interval, and then
write some code like thie following in the "elapsed" event:
If myLabel.ForeColor = Color.Black Then
myLabel.ForeColor = Color.Red
Else
myLabel.ForeColor = Color.Black
End If

Hope this helps,

Joris

"Bharathi Kumar" wrote:
Hi,

How can I get a blinking text for a lable.
Iam working in a window appln using framework 2.0 and VS 2005.
Thanks in advance,
Bharti Kumar.

Jul 10 '06 #2

Bharathi Kumar wrote:
Hi,

How can I get a blinking text for a lable.
Iam working in a window appln using framework 2.0 and VS 2005.
Thanks in advance,
Bharti Kumar.
My first question is why on earth would you want to do such a thing?

However that aside if you really must then remember the suggestion
above requires a postback for the code to execute which hardly seems
practical given the description you've given.

You should take a look at AJAX.

Jul 10 '06 #3
richard.ian.br...@gmail.com wrote:
Bharathi Kumar wrote:

Iam working in a window appln using framework 2.0 and VS 2005.
above requires a postback for the code to execute which hardly seems
He made no mention of a web app. He is building a Windows app.

After setting the color of the label, call the .Refresh method to
update the label on the form.

But I agree with Richard, most people find a blinking label to be
annoying.

Jul 10 '06 #4
Hi,

Thank you very much for replies.

My project is a desktop application. I mentioned it in the question
clearly.

I have some graphics in my project and I need to highlight the current
activity going on.

If its blinking it catches the attention. A plane text may not do
better I think.
Thanks and Regards,
Bharathi Kumar.

ri***************@gmail.com wrote:
My first question is why on earth would you want to do such a thing?

However that aside if you really must then remember the suggestion
above requires a postback for the code to execute which hardly seems
practical given the description you've given.

You should take a look at AJAX.
Jul 12 '06 #5

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

Similar topics

4
by: Stuart Norris | last post by:
Dear Readers, I am attempting to draw box around some text using unicode on multiline label. The label is forty characters wide and 12 lines deep. I have been trying to draw a box around text...
12
by: vbnewbie | last post by:
I am having problems accessing properties of dynamically generated objects in VB2005. Can someone please help? In a nutshell: My app creates an equal number of checkboxes and labels that share the...
1
by: Manoj Mittal | last post by:
I have created the Dynamic control in asp.net c# like for (int i = 1; i <= 5; i++) { Label label = new Label(); label.ID = "Label" + i; label.Text = "Label"+i; form1.Controls.Add(label); }
11
by: Peter Larsen [] | last post by:
Hi, I have two questions related to the Label control. How do i prevent the label from expand the canvas into 2 lines (word wrap) ?? At the moment i set AutoSize to false (to prevent the word...
1
by: Pradyumna | last post by:
Hi I want the text of a textbox to blink on my page.How to do this. My requirement is like : There are certain fields on my page which are mandatory and requirement is to bring blink effect of...
0
by: Kevin McKinley | last post by:
Below i've put the code for a program that i wrote. I need help on lines 384-403. If you run this program you will notice on the first tab when have it produce an answer the $ is surrounded with...
0
by: Guilherme Polo | last post by:
On Wed, Sep 3, 2008 at 8:57 PM, Kevin McKinley <kem1723@yahoo.comwrote: Come on.. "help on lines 384-403", that is not a good way to look for help. You are supposed to post some minimal code that...
7
by: semomaniz | last post by:
Is there a way using animation extender to blink a text? IE does not support the css style text-decoration:blink so trying to use animation extender. I am trying to create a list of to do items...
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,...
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
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 project—planning, coding, testing,...
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: 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 ...

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.