Solved

how can i set ismdichild property of form set to true in C#.net windows application ??

Posted on 2011-03-10
1
1,851 Views
Last Modified: 2012-06-27
how can i set ismdichild property of form set to true  ??

for ex.

Form objform = new Form()

Open in new window


in above form how can set it property ? because it has only get feature ..

can u tell the procedure ??
0
Comment
Question by:Parth48
1 Comment
 
LVL 10

Accepted Solution

by:
Asim Nazir earned 500 total points
ID: 35106115
You need to set MDIParent of form. As shown below:

 
private void CreateMyChildForm ()
{
   // Create a new form to represent the child form.
   Form child = new Form();
   // Increment the private child count.
   childCount++;
   // Set the text of the child form using the count of child forms.
   String formText = "Child " + childCount;
   child.Text = formText;

   // Make the new form a child form.
   child.MdiParent = this;
   // Display the child form.
   child.Show();
}

Open in new window


0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MailAddress in vb 4 29
Finding the IIS version 5 22
Need a simple RegEx to search for two words 27 47
JQuery Detecting page post back 6 12
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question