Visual Basic .NET Forums  

Go Back   Visual Basic .NET Forums > VB.NET > Windows Forms

Windows Forms Discussion related to Winforms application development

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-01-2008, 11:01 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Sep 2008
Posts: 22
Reputation: 13
Progress2007 is on a distinguished programming path ahead
Default MDI Form Problem

Hi all
I am using a Form to Create it as MDI Form. I have set IsMDIContainer property to TRUE so that it coluld be work as MDI Form, At this MDI Form I ahve used 3 panels which contains 3 dataGrids

Now My problem is that when i set a child form of this MDI Parent Form it does not show, or it is showing behind of the Panels.

I have Written code like this.
'' frmEdit is a form

frmEdit.MdiParent = Me
frmEdit.WindowState = FormWindowState.Maximized
frmEdit.Show()

Please help me so that this form colul made at top of all forms.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-01-2008, 2:27 PM
VB.NET Forum Fanatic
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Jan 2006
Location: Hermosa Beach, CA
Posts: 102
Reputation: 50
IfYouSaySo is on a distinguished programming path ahead
Default

my understanding is that a mdi parent form does not typically have any controls on it (besides menus & toolbars etc). I had the same problem btw when I tried to use ToolStripContainer, the following forum topic on msdn is relevent: Re: ToolStripContainers and MDI applications - MSDN Forums.

I am wondering why your datagrid panels are on the mdi parent, and not on a child form?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-02-2008, 1:31 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Sep 2008
Posts: 22
Reputation: 13
Progress2007 is on a distinguished programming path ahead
Default

Well thanks for ur response. but i think in .NET 2008 threre will be a facility to do this.

Quote:
Originally Posted by IfYouSaySo View Post
my understanding is that a mdi parent form does not typically have any controls on it (besides menus & toolbars etc). I had the same problem btw when I tried to use ToolStripContainer, the following forum topic on msdn is relevent: Re: ToolStripContainers and MDI applications - MSDN Forums.

I am wondering why your datagrid panels are on the mdi parent, and not on a child form?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-02-2008, 4:44 AM
jmcilhinney's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 5,309
Reputation: 415
jmcilhinney master of VB.NETjmcilhinney master of VB.NETjmcilhinney master of VB.NETjmcilhinney master of VB.NETjmcilhinney master of VB.NETjmcilhinney master of VB.NETjmcilhinney master of VB.NETjmcilhinney master of VB.NETjmcilhinney master of VB.NET
Default

You would need to set the Dock property of each Panel so that they are docked to the edges and the MdiClient that hosts the child forms will occupy the rest of the space.
__________________
Essential: Multiple Forms
101 Samples: 2002 | 2003 | 2005Free Components: WFC | XPCC | ElementsEx | VBPP | ADO.NET/MySQL | VisualStyles | NPlot | SDFTutorials: Home & Learn | Start VB.NET | Learn VB.NETFavourites: MSDN | WinForms.NET | ASP.NET | WinForms FAQ | WebForms FAQ | GotDotNet | Code Project | DevBuzz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 6:28 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0


For advertising opportunities click here.