🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #3119

Re: VB.NET mdi

#3119
From: Bart
Date: Mon, 16 Feb 2004 08:12
47 lines
2901 bytes
"Joris Janssens" <flotspe@xhtml.invalid> schreef in bericht
news:Xns948EE919F67F4flotspexhtmlinvalid@195.130.132.70...
> "Bart" <nomail@nomail.com> wrote in
> news:t16Xb.3$1q5.90201@phobos.telenet-ops.be:
>
> > Ik heb een mdi-form gemaakt. Nu wil een een mdi-child maken. Dus ik
> > doe add->add windows form en dan maak ik een nieuw formulier aan. Maar
> > nu zie ik in de propertys niets staan ivm MDI.
> > In vb 6 was het toch gewoon een optie 'mdichild', maar in .NET vind ik
> > niet terug hoe ik een mdi-child aanmaak.
> > Iemand die me kan helpen ?
>
> Elke form heeft een IsMdiContainer-property. Voor je mdi-form zet je die
> op true. Voor alle "gewone" forms en mid-childs moet dat op false staan
> (is standaard zo). Een mdi-child maak je op dezelfde manier als een
> gewone form. Je kan dan bij het oproepen van die form bepalen dat het om
> een mdi-child gaat door via de MdiParent-property een mdi-parent toe te
> wijzen aan dat formulier.
>
> een voorbeeld (in C#) ter verduidelijking
>
> // instantieer je mdi-child
> MdiChildForm frmMdiChild = new MdiChildForm();
> // duid aan wat de mdi-parentform is
> frmMdiChild.MdiParent = this;
> // toon dit mdi-child
> frmMdiChild.Show();
>
> Met deze code roep je een mdi-child op waarvan de mdi-parent de huidige
> form is ("this" = "Me" in Visual Basic).
>
> De MdiParent-property is een runtime-only property en dus niet in te
> stellen via de propertygrid in designtime.
>
>
> Kort samengevat
> isMdiContainer op true zetten voor de mdi-parent
> mdiParent toekennen aan al je mdi-childs
>
>
> -- 
> Joris "flotspe" Janssens
> http://www.xhtml.be/inferno/
>  A: Because it messes up the order in which people normally read text.
>  Q: Why is top-posting such a bad thing?

Bedankt Joris
Technical Details
Message-ID: <2Y_Xb.3079$Me7.257143@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!proxad.net!newsfeed.arcor-online.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
References: <t16Xb.3$1q5.90201@phobos.telenet-ops.be> <Xns948EE919F67F4flotspexhtmlinvalid@195.130.132.70>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,f08ebe70da8aee26
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2004-02-16 00:12:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!proxad.net!newsfeed.arcor-online.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: "Bart" <nomail@nomail.com>
Newsgroups: be.comp.programming
References: <t16Xb.3$1q5.90201@phobos.telenet-ops.be> <Xns948EE919F67F4flotspexhtmlinvalid@195.130.132.70>
Subject: Re: VB.NET mdi
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <2Y_Xb.3079$Me7.257143@phobos.telenet-ops.be>
Date: Mon, 16 Feb 2004 08:12:46 GMT
NNTP-Posting-Host: 81.82.207.9
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1076919166 81.82.207.9 (Mon, 16 Feb 2004 09:12:46 MET)
NNTP-Posting-Date: Mon, 16 Feb 2004 09:12:46 MET
Organization: Telenet Internet