|
-
Nov 26th, 2003, 06:21 PM
#1
Thread Starter
New Member
How to make MDI childs
Hi,
I'm new to VB.NET and want to make childs in a MDI form but I don't find any property like MDIChild or something to set true (like I use to do in VB6) How can I make this child forms?
Thanx for any help.
-
Nov 26th, 2003, 06:40 PM
#2
Frenzied Member
Not sure if this is the only/best way, but it works...
For your parent form, set IsMdiContainer to True. Then show a form that you want to be the child - something like
VB Code:
Dim frm As New NewCall ' NewCall is a System.Windows.Forms.Form
frm.MdiParent = Me
frm.WindowState = FormWindowState.Maximized
frm.Show()
-
Nov 26th, 2003, 06:40 PM
#3
When showing the form set the MDIParent property to the MDIContainer form. I don't remember if you can set that property at designtime or not, sorry.
-Yeah what he said!
-
Nov 26th, 2003, 07:14 PM
#4
Thread Starter
New Member
Thankx a lot guys that works fine!
Originally posted by Edneeis
I don't remember if you can set that property at designtime or not, sorry.
I don't think so. I've went true all the form properties 5 times and I didn't found a right property for that action.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|