Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Minimize Button 1

Status
Not open for further replies.

selimsl

Programmer
Aug 15, 2005
62
TR
Hi

Is there any way to be aware when the form's minimize button is clicked?
 
Maybe in the Form_Resize event?


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
You are right.

Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
Select Case Me.WindowState
Case FormWindowState.Maximized
MsgBox("MAXIMIZE")
Case FormWindowState.Minimized
MsgBox("minimaze")
Case FormWindowState.Normal
MsgBox("N o r m a l")
End Select
End Sub
 
Thanks for this valuable code

Is there any way using some codes to change form's state

I tryed this but there is a syntax error

FormWindowState = set FormWindowState.normal

Thanks in advice..
 
Me.WindowState = FormWindowState.Normal

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top