?
Solved

Help with creating notification control

Posted on 2015-02-11
2
Medium Priority
?
69 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

Basic Security of Your VPC

So, you’ve got this shiny new VPC and a fancy new application configured on your EC2 servers ready to go. This application is only accessible from your computer, which is great for security, but you need your users to be able to access it! So, what’s the easiest way to do this?

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
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…
Suggested Courses

801 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