I have an app that is to run as a system tray icon. It has a simple control panel in the "frmTimer" module.
My problem is that the form is displayed after launch, even though it is not supposed to be. Here is an excerpt from the code in qustion:
---------------
----------------
After frmTimer_Load() runs, the form IS displayed - not hidden. Clicking the "Close" button to invoke cmdClose_Click() works perfectly.
Any enlightenment would be most appreciated.
Dave Gee
My problem is that the form is displayed after launch, even though it is not supposed to be. Here is an excerpt from the code in qustion:
---------------
Code:
Private Sub frmTimer_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
... init code cut for clarity ...
Me.Hide()
End Sub
Private Sub cmdClose_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdClose.Click
Me.Hide()
End Sub
After frmTimer_Load() runs, the form IS displayed - not hidden. Clicking the "Close" button to invoke cmdClose_Click() works perfectly.
Any enlightenment would be most appreciated.
Dave Gee