Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

 

Is there a way to use the minimize button on the form (the one at the top right of every window) to hide the form when you click it instead of minimize it to the taskbar in VB.NET?

 

That way, I can make my form 'minimize' to a notification icon in the systray without having to add a new button to the application.

 

Thanks...

Posted

Hehe, nevermind I figured it out....

 

Private Sub Form1_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.SizeChanged
       If (Me.WindowState = FormWindowState.Minimized) Then
           MsgBox("Minimized")
       End If
End Sub

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...