Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Help with creating notification control

Posted on 2015-02-11
2
Medium Priority
?
71 Views
Last Modified: 2015-02-12
Hi,

How do you create a blinking control to let the user know the application is processing using VB.NET?

Thanks,

Victor
0
Comment
Question by:vcharles
[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
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 2000 total points
ID: 40604968
You work with a Timer.

Drag a Timer from the Toolbox to your form. It will appear in a bar at the bottom of your form.

Click on the Timer and set its Interval property to the delay that you want for you flashing. The Interval is in milliseconds, so 500 would give you half a second.

Double click on your timer to go into its Tick event, and add code such as the following. The Control can be anything, I sometimes use a Label with some meaningful text such as "Wait, I work..." :-) Add code like the following to switch the color:

	Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
		If Label1.BackColor = SystemColors.Control Then
			Label1.BackColor = Color.Red
		Else
			Label1.BackColor = SystemColors.Control
		End If
	End Sub

Open in new window


When you want your control to Flash, simply call the Start method on your Timer. The Stop method to stop it. If you do not hide the control between calls, make sure to set its BackColor to Control after the Stop, to make sure that it does not stay highlighted.
0
 

Author Closing Comment

by:vcharles
ID: 40606229
Thank You!
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

610 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