
Showing a form from within Sub Main.
I have a vb.net program that begins with a sub Main. The
sub Main launches two threads that handle serial
communications with an attached device and three times
that set refresh intervals for various data coming
to/from the device. None of this is a problem and runs
with less than 1% cpu utilization.
The problem is when I try to add a form that will be used
to monitor all this. Currently the form consists of
simply a listbox and MainMenu and a NotifyIcon with a
ContextMenu.
The form shows but does not repaint and soon shows "(Not
Responding)" in the caption. The NotifyIcon does appear
in the system try and the proper tooltip apears but the
context menu does not. Neither does double-clicking it.