Hi jmcilhinney
Thank you for your suggestion.
My next concern was how to restore the window to a normal state after it had been minimised and hidden.
So to fix that, I used
PrivateSub NotifyIcon_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles...
Hi JohnH
That is eactly what I was looking for.
For completeness, here is the code:
PrivateSub FormMain_Resize(ByVal sender As System.Object, _
ByVal e As System.EventArgs) HandlesMyBase.Resize
If Me.WindowState = 1 Then
Me.Hide()
End If
End Sub
Thank you.
Kind...
Hi folx
I want to close a form (as if the user had clicked on the Cancel button) when the user presses the Escape button.
- The form has: 1 label, 1 textbox, an OK button and a Cancel button.
- The textbox has focus by default.
- If I press the escape key while the textbox has focus, the...
How do I minimise an application to the system tray when I click on the minimise button?
I can minimise when the user clicks on the Close button, because I can wrap the code inside ..._Closing:
Private Sub FormMain_Closing(ByVal sender As Object, _
ByVal e As...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.