By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,646 Members | 2,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,646 IT Pros & Developers. It's quick & easy.

Maximize Form

Ali Rizwan
P: 927
Hi all,
I want to maximize my form using a command button and also minimize and restortion.
using command buttons.

>> Ali <<
Dec 14 '07 #1
Share this Question
Share on Google+
2 Replies

P: 107

In the Command_Click Event write the following coding.

Private Sub Command1_Click()
Form2.WindowState = 0 'For Normal State
End Sub

Private Sub Command2_Click()
Form2.WindowState = 1 'For Minimize State
End Sub

Private Sub Command3_Click()
Form2.WindowState = 2 'For Maximize State
End Sub

All the Best

With Regards
Vijay. R
Dec 15 '07 #2

Ali Rizwan
P: 927
Thanx to all who helped me
Dec 18 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.