System Tray Application

G

Guest

Hi,

I'm trying to write a Windows App that will sit in the system tray. I don't
need it to have any forms and UI to it really, just a context menu on the
icon in the system tray that has links to a couple of web pages. The main use
for the app is to check a database to see if there are any alerts for the
current user and then pop them up on the screen.

Whats the best way of going about this. I have done a little bit of playing
around with the NotifyIcon control and trying to use the ShowBalloonText
function for it, but with little success.

Any ideas help and pointers are greatly appreciated!

Thanks in advance

- Brian
 
M

Miro

When I created a mini app like this. I chose the form way.
I made the form with 100 % transparent - and added the notify icon on it.
There is a way to do it without the form way - but that was easiest for me
at the time.

My app was checking processes running on the computer and killing onse that
were dead but hanging around.

Miro
 
R

Ray Cassick

Does it really matter if you have a form or not? If you do just hide it (set
Visible to False).

What problems are you running into? The balloon text is not that hard to
use:

NotifyIcon1.BalloonTipIcon = ToolTipIcon.Warning
NotifyIcon1.BalloonTipTitle = "Message Title"
NotifyIcon1.BalloonTipText = "Message text goes here."
NotifyIcon1.ShowBalloonTip(10000) 'The 10000 is the timeout it takes for the
balloon to go away on its own
 
G

Guest

Yea, your right on whther the form is htere or not, Ive got that part of my
app working now.

As for the ballon text I have used that same code and Im not getting a
balloon at all. I do hear the little windows 'pop' noise that happens when a
balloon appears when I run the code, but I dont get anything on the screen
.... very, very weird
 
R

Ray Cassick

Hmmm is the NotifyIncon control on a form or did you just create an instance
of it?

I wonder if it has something to do with not having a visual context to show
the control without having a form.
 
G

Guest

I have tried it with having a form visible and not visible (Through the use
of the opacity property) and I still have the same result. I also tried
creating just a module and declairng an instance of NotifyIcon, and the icon
is still there but there still isn't any balloon when I use that code ... me
thinks somethings not quite right with my PC or something perhaps, because
everything I can find on the net about this suggests that its a simple couple
of lines of code that should just work!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top