Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Animating message boxes/ dialogue boxes? 1

Status
Not open for further replies.
Feb 19, 2005
47
0
0
GB
Hi, i have a message box that pops on the screen after the computer has been idle for ten minutes to tell the user that they have been idle and the system will close in five minutes if there is no action. Is there a way to make the message box make a noise or perhaps the title bar flash or change colour so the user is more likely to notice it? thanks
 
TrainGamer

Help file installed with access or help file on this site (if on this site where do I find it?) and is there a way to change the colours of the title bar or have them flash?`
 
The Beep Statement is in the help for VBA. That's just to make the sound.
I don't know about changing the color of the title bar or flashing - if there's a way, someone here will probably know the answer, though.

traingamer
 
Place a label on the form
backcolor=black
Form Timer =1000
then
Code:
Private Sub Form_Timer()
	If Me.Label0.BackColor = vbBlack Then
	Me.Label0.BackColor = vbRed
        Beep
Else
	Me.Label0.BackColor = vbBlack
        Beep
End If
End Sub
This will blink the label Red/black and Beep

Zameer Abdulla
[sub]Jack of Visual Basic Programming, Master in Dining & Sleeping[/sub]
Visit Me
 
I am sorry to add the statement that this code is for a form that can be used as messgebox

Zameer Abdulla
[sub]Jack of Visual Basic Programming, Master in Dining & Sleeping[/sub]
Visit Me
 
ZmrAbdulla,

Thank you very much! this sounds perfect!

do I add the code in the forms on timer?

And I don't understand why you are sorry?
 
You asked for a solution to be used with MsgBox. I have replied for a form's solution. I was not clear on that.
Instead of using a message box you have to create a modal form that looks like a message box then add
a label
back color =black
TimerIntereval=1000
OnTimer you have to use the code.
you can use custom buttons & code for that form that a normal message box don't allow.
so instead of a messagebox this form will popup, blink the label,beep...
There may be solutions to blink a message box title bar.
hope this helps.



Zameer Abdulla
[sub]Jack of Visual Basic Programming, Master in Dining & Sleeping[/sub]
Visit Me
 
Thank you! I have done as you have said, and it workes perfectly and looks beautiful! many thanks!
 
Great...

Zameer Abdulla
[sub]Jack of Visual Basic Programming, Master in Dining & Sleeping[/sub]
Visit Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top