MDI Problem & Controls Resizing
-
1st Problem The problem is that i have a Main Mdi form with a drop down menu say File->New when i click New a child form opens and if i again click File->New another similar child form opens i want to restrict this that if a form is open second child form must not open on clicking new (any article or Code) 2nd Problem Second Problem is about resizing of controls on the similar project disussed above if i place a group box on the child form and put some controls when i run it the controls are adjusted as i placed and there is lot of space empty on the child form how should it be done that when i open the child form the control should be resized according to the maximize button and according to the size of the parent SAS
-
1st Problem The problem is that i have a Main Mdi form with a drop down menu say File->New when i click New a child form opens and if i again click File->New another similar child form opens i want to restrict this that if a form is open second child form must not open on clicking new (any article or Code) 2nd Problem Second Problem is about resizing of controls on the similar project disussed above if i place a group box on the child form and put some controls when i run it the controls are adjusted as i placed and there is lot of space empty on the child form how should it be done that when i open the child form the control should be resized according to the maximize button and according to the size of the parent SAS
1st Problem Use ShowDialouge method for open new window. 2nd problem Set anchor property of cotrol.
Parwej Ahamad g.parwez@gmail.com
-
1st Problem The problem is that i have a Main Mdi form with a drop down menu say File->New when i click New a child form opens and if i again click File->New another similar child form opens i want to restrict this that if a form is open second child form must not open on clicking new (any article or Code) 2nd Problem Second Problem is about resizing of controls on the similar project disussed above if i place a group box on the child form and put some controls when i run it the controls are adjusted as i placed and there is lot of space empty on the child form how should it be done that when i open the child form the control should be resized according to the maximize button and according to the size of the parent SAS
Hav a habit of putting Full stop at ur problem descriptions. Solution for 1st problem: use Singleton pattern.You can find them in c-sharpcorner.com :-O Solution for 2nd problem:I am not getting you???:confused:
Regards Chintan www.visharadsoft.com (I am thinking to change humans to computer, but unfortunately GOD will not give me the source code)