Solved

How Do I Create a Windows Application that Behaves like the Windows in the Visual Studio IDE?

Posted on 2009-07-07
4
251 Views
Last Modified: 2012-05-07
Im in need of creating a Visual Basic windows application that has a main (parent) window with several (child like) sub-windows.  My application needs to mimic the behavior of various windows similar to those used in the IDE of Visual Studio.  For example, in the IDE one can resize the windows, close and open them, and even double click on the title bar to make the window pop out as an independent window.  My question is how should I go about doing this in VB.  Do I use panels?  Do I use MDI parent/child windows?  Is it some combination of the two?  Im looking for an approach to this problem before I begin the development process.
0
Comment
Question by:robtrue
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
VBRocks earned 500 total points
ID: 24794208
Yes, use an MDI parent/child.  

Create a new Form called "Form1", and copy and paste this code into it:

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, _
                           ByVal e As System.EventArgs) Handles MyBase.Load

        Me.Text = "MDI Demo"
        Me.IsMdiContainer = True
        Me.WindowState = FormWindowState.Maximized

        CreateForm("Form1", DockStyle.Bottom)
        CreateForm("Form2", DockStyle.Left)
        CreateForm("Form3", DockStyle.Right)


    End Sub


    Public Sub CreateForm(ByVal txt As String, ByVal dock As DockStyle)

        Dim frm As New Form()
        frm.FormBorderStyle = Windows.Forms.FormBorderStyle.FixedToolWindow
        frm.Text = txt
        frm.MdiParent = Me
        frm.Dock = dock
        frm.Show()

    End Sub

End Class

0
 
LVL 27

Expert Comment

by:VBRocks
ID: 24794388
0
 
LVL 4

Expert Comment

by:vbgb
ID: 24794674
Using the built in controls in VS 2005 or VS 2008 will not really mimic the VS window behaviour.

For this you need to use tabbed MDI windows and tool windows that will dock inside each other and wich can be pinned open or allowed to automatically collapse. To do this properly you probably need to invest in a 3rd party suite like Infragistics or DevExpress.
0
 

Author Comment

by:robtrue
ID: 24794792
The double click on title bar works, but what about resizing.  For example, in the Visual Studio IDE there are separators between the windows and one can drag the separator to make one window large and the other window smaller.  How does one do that?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question