i am trying to make a program that in the even that a message is received when the program does not have focus a message box will be displayed, however, using:

if me.focused = false then
TrayIcon.BalloonTipTitle = "New Message From " & array(0)
TrayIcon.BalloonTipText = array(1)
TrayIcon.ShowBalloonTip(5000)
end if

always return the message even if the form is not focused. i also tried this under message received:

messagebox.show(me.focused)

and it always receives the value false

can someone please tell me what i am doing wrong. and is there another command that i am supposed to be using?
Thank
~Matt

Recommended Answers

All 2 Replies

You have to handle BallonTipShown event.

? i have no problem with the balloon text. i just want that to only show when the windows does not have focus.

windows has focus - string appears in window
windows has no focus - string appears in tray pop up

the focusing function is what is not working for me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.