?
Solved

Flashing red text

Posted on 2005-03-06
9
Medium Priority
?
260 Views
Last Modified: 2010-04-16
Hi,

I'm trying to give a text label two states, flashing red and unflashing green.  Could somebody give me a hand?

Thanks.
0
Comment
Question by:ba272
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 11

Expert Comment

by:sachiek
ID: 13474044
You mean blink feature?


Sachi
0
 

Author Comment

by:ba272
ID: 13474062
I mean, I insert the word "processing" in red, and it flashes.  Then when it's finished I write, "complete", in green.

I don't know anything about the blink feature.  I know from my DOS programming days, we could make it blink by setting the text state.
0
 
LVL 11

Expert Comment

by:sachiek
ID: 13474080
Ok are you using asp.net or winforms?

Sachi
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:ba272
ID: 13474095
Winforms.

Bob
0
 
LVL 14

Expert Comment

by:Thandava Vallepalli
ID: 13474119
you need to use the FlashWindow API

[ DllImport("user32.dll") ]        
static extern int FlashWindow
(
    int hwnd,
    int bInvert
);

To use it :

FlashWindow(label.hWND, 1);  

will blink the label.

Bye.
0
 

Author Comment

by:ba272
ID: 13474174
It looks promising.  But "DllImport" cound not be found.

Any ideas?

Thanks,
Bob
0
 
LVL 11

Accepted Solution

by:
sachiek earned 2000 total points
ID: 13474177
If would like to have your own blink control for your winforms application without win32 dll

check this url.
http://msdn.microsoft.com/msdnmag/issues/02/04/winforms/default.aspx
They had created a winform control which is specifically blink control.


Sachi
0
 

Author Comment

by:ba272
ID: 13474200
Yes, I'd rather not import win32.dll.

Yours will take some reading, but the idea of making a custom control in .NET is exciting.

Thanks,
Bob
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question