Solved

Help with creating notification control

Posted on 2015-02-11
2
68 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 500 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 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