cjard
Well-known member
- Joined
- Apr 25, 2006
- Messages
- 7,081
- Programming Experience
- 10+
I'm trying to make an app that will start up hidden. There are some complications around it but i've gotten to the stage where i do this:
Set windowstate = minimized
Set showintaskbar = false
The app starts minimized no button - it doesnt appear on screen
The Shown event handler fires, where i:
The form is turned invisible then restored. At no point does it appear on screen but the issue I have... is that if I Show() it, it does not appear.
The show has been attachd to the notifyicon doubleclick - if I break on that and examine my form I find that even though i've already set the windowstate to normal, it has reverted to minimized and the Location, is set to -32000, -32000 ; very far off screen.
If I reset it to Normal, and set location to centre screen, then call show, a very small box appears in the centre. The form has again reverted to minimized.
Does anyone know why this happens? I'm struggling to un-minimize this form and I cant understand why
Set windowstate = minimized
Set showintaskbar = false
The app starts minimized no button - it doesnt appear on screen
The Shown event handler fires, where i:
VB.NET:
If Me.Visible AndAlso Me.WindowState == Minimized Then
Me.Visible = False
Me.WindowState = Normal
End If
The form is turned invisible then restored. At no point does it appear on screen but the issue I have... is that if I Show() it, it does not appear.
The show has been attachd to the notifyicon doubleclick - if I break on that and examine my form I find that even though i've already set the windowstate to normal, it has reverted to minimized and the Location, is set to -32000, -32000 ; very far off screen.
If I reset it to Normal, and set location to centre screen, then call show, a very small box appears in the centre. The form has again reverted to minimized.
Does anyone know why this happens? I'm struggling to un-minimize this form and I cant understand why
Last edited: