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-05-2008, 2:27 AM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Mar 2008
Posts: 19
Reputation: 19
batutabunsing is on a distinguished programming path ahead
Default Programmatically Layout MDI Child Forms

How do I programmatically layout the child forms in MDI container?

For example, is there an MDI command for

- Cascade windows
- Tile Vertical
- Tile Horizontal
etc.

I want to know how the MDI does this. I think it is not exposed when you use the Standard menu items and as such, I want to know how it is done.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-05-2008, 7:00 AM
VB.NET Forum Genius
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Sep 2006
Location: Cochin, India
Posts: 247
Reputation: 88
ajeeshco done a little coding in his/her timeajeeshco done a little coding in his/her timeajeeshco done a little coding in his/her time
Default

You may layout mdichildren using LayoutMdi method

for example,

Code:
Me.LayoutMdi(MdiLayout.TileHorizontal)

Me.LayoutMdi(MdiLayout.TileVertical)

Me.LayoutMdi(MdiLayout.Cascade)

Me.LayoutMdi(MdiLayout.ArrangeIcons)
here Me refers to the mdi parent

Hope this helps you
__________________
--=A J E E S H=--
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-05-2008, 7:54 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

The MSDN documentation for the IsMdiContainer property, which you must already be setting, has a link to a topic entitled "Multiple-Document Interface (MDI) Applications". That topic has a link to a topic entitled "How To: Arrange MDI Child Forms". Microsoft don't hide this information but if you don't look then of course you won't find.
__________________
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 9:06 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.