.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

child form size should auto fit with the parent form size

Posted By: Jayakumar     Posted Date: March 16, 2010    Points:2   Category :Windows Application
hi,

i need some idea reg this issues.

i want my child forms size should auto fit to the size of parent form.

that is minimum size of child forms should be less than minimum size of parent form.

when i minimize the parent form , my child form also should fit parent form and child form content should not scrolled.

how it can be done.

regards
jai

Responses
Author: Sagar Pardeshi             
Posted Date: March 17, 2010     Points: 5   
Author: Venkat             
Posted Date: March 17, 2010     Points: 5   

Hi you can set the WindowsState property of the form to make it maximized

childform.WindowState=FormWindowState.Maximized;

Mark As Answer if this solve your problem
Warm Regards,
Venkat
Author: krishana singh             
Posted Date: December 07, 2010     Points: 5   

Form f = this.ActiveMdiChild;
if (f != null)
f.Close();
workerJobReport f1 = new workerJobReport();
f1.MdiParent = this;
f1.WindowState = FormWindowState.Maximized;
f1.Show();



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend