[RESOLVED] [2005] Minimizing Form on First Load
Hi
Right basically my application is going to startup when the computer boots up, however I have got code in the forms Load event handler and I need it to be executed, I want the form to appear for 1 sec and the minimize to the system tray, it already minimizes to the system tray when click though.
I though of putting this at the end of the form load event
Code:
Dim int As Integer = 1
int += 1
If int = 2 Then
me.hide
End If
That way the form is only going to minimize the first time it is loaded, bu for some reason it does not minimize
Help appreciated
Re: [2005] Minimizing Form on First Load
vb Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.WindowState = FormWindowState.Minimized
End Sub
Works a charm ;)
Re: [2005] Minimizing Form on First Load
Already tried that, still didnt work
EDIT: Ah just seen a contidion isnt being met in my code, hence why it isnt working lol, thanks anyways.