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
100+
P: 927
Hi all,
I want to maximize my form using a command button and also minimize and restortion.
using command buttons.

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


VijaySofist
100+
P: 107
Hi!

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
100+
P: 927
PROBLEM SOLVED
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.