|
-
Jun 30th, 2005, 06:58 AM
#1
Thread Starter
Lively Member
Need help with MDI in VB.NET
I made an application in VB6 which I am now remaking in VB.NET.
It is a MDI form in wich all other forms are displayed. I cant seem to replicate this behaviour in VB.NET. I set the 'IsMDIForm' value of the main form in VB.NET to 'True'. But I can't figure out how to set the other forms to MDI Child. They do vanish when I close the main application but they do show up outside the frame of the main window. The second problem is how to show some forms modally. When I open the settings dialog I don't want the user to be able to access the main form. Can anyone tell me how to do this or point me to a tutorial?
-
Jun 30th, 2005, 07:31 AM
#2
New Member
Re: Need help with MDI in VB.NET
In your main form set the IsMdiContainer property to True.
In your main form where you want to open the child form do the following.
VB Code:
Dim frmChildForm as new ChildForm
frmChildForm.MdiParent = Me
frmChildForm.Show()
-
Jun 30th, 2005, 09:41 AM
#3
Thread Starter
Lively Member
Re: Need help with MDI in VB.NET
Thanks. That solves the first portion of my problem. But i still don't know how to show it modally.
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
|