Reputation: 6251
Is it possible to add a handler to the form button for the form minimalization? My application doesn't use windows frame and I would like to handle window event inside of my code.
How can I achieve this?
Upvotes: 0
Views: 40
Reputation: 1838
Private Sub btnMin_Click(ByVal sender As Object, ByVal e As EventArgs)
Me.WindowState = FormWindowState.Minimized
End Sub
Upvotes: 2