[Using VB.NET 2005]
We've got an old application that has been modified quite a bit.
Originally, it was just a single form application that hid in the Task Bar
Tray using a Notify Icon.
Later, we had to add a Custom Dialog Box to the project.
Now, it has been determined that the project would be best served by the
Dialog Box only, and eliminate the main form.
So, the project is now a Console-like Application that starts with a Main
Module. The Notify Icon had to be included with the Dialog Box, otherwise we
weren't able to make it work.
The Notify Icon has a Context Menu Strip and events for Click and Double
Click.
When the Main Module starts, it creates a new instance of the Dialog Box,
but does not show it.
When the Dialog Box is created, it creates and shows the Notify Icon.
If you are still reading this, here is the problem:
Unless the Dialog Box is being displayed (dialog1.ShowModal), all the Notify
Icon will do is show its Balloon Message. The Click, Double Click, and
Context Menu Strip does not react at all.
Any idea why? How would I get this to work?