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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Minimize by command button?

Status
Not open for further replies.

ErroR

Technical User
Apr 9, 2001
79
US
This seems silly to be asking, but what would be the command to put into the click event of a command button to minimize the form just as if you clicked the minimize on the min/max/close in the upper right corner?
 
try:

Private Sub Command1_Click()
Form1.WindowState = 1
End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top