Scott
Scott

Reputation: 6251

Minimalize event handler

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

Answers (1)

Omair Iqbal
Omair Iqbal

Reputation: 1838

Private Sub btnMin_Click(ByVal sender As Object, ByVal e As EventArgs)
      Me.WindowState = FormWindowState.Minimized
End Sub

Upvotes: 2

Related Questions