Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have to creat two forms (Form1 and Form2). Here Form1 is the main form (that was created when you created the project). The thing is: when you click on the Form2, the size of Form1 need to be random changed. How can I do this? Any help is appreciated. Thanks in advanced!
Posted

With the size properties and a random number generator. I believe the class is called Random. You may consider buying a book and working through it.
 
Share this answer
 
Hi phabion
one way to change the size of the form is
Form1.ActiveForm.ClientSize.Width=YourRandomVariableWidth;
khalid sabtan
saudia arabia
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900