Solved

MDI Forms and C#

Posted on 2006-10-24
6
342 Views
Last Modified: 2008-02-01
I'm sure this is a very very simple question.  How do you set up a MDI Form with child forms contained in the Parent?  I set up the MDI, but all of the child forms can be moved outside of the MDI.

Thanks,

jocasio
0
Comment
Question by:Juan Ocasio
  • 2
  • 2
  • 2
6 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 17798705
Hi jocasio123,

In VB.Net, we do this:
            Dim f As New fClientUHMS
            f.MdiParent = Me
            f.Show()

It should be much the same in C#.

Cheers!
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 25 total points
ID: 17799218
C# equivalent of emoreau's post:

    SomeChildForm f = new SomeChildForm();
    f.MdiParent = this;
    f.Show();
0
 
LVL 14

Author Comment

by:Juan Ocasio
ID: 17799342
Can this be done through the IDE?  In 6.0 (VB) you could set the child prop to True.  Is there a property similar?
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 17799353
Nope...it's done at run-time.
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 25 total points
ID: 17799424
>>In 6.0 (VB) you could set the child prop to True.

In VB6, you were deciding at design time if the form was to be child or not.

Now in .Net, this setting is only available at runtime and this is a good thing. You can decide if a form will be a child or not depending on some other condition. For example, experienced users prefers non-MDI windows.
0
 
LVL 14

Author Comment

by:Juan Ocasio
ID: 17800609
Thanks..Will investigate your suggestions
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

809 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