CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    11

    ToolWindow Resizing

    I made a toolwindow, that has to be displayed just like in the VB-environment at the right in my MDI-Form. This toolwindow is set as a child.
    Is there sourcecode available to size/resize this toolwindow and let it fit (.height and .top are important) the MDIForm


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: ToolWindow Resizing

    If your tool window is a form, you could use something like this in Resize event of MDI form. In this ex, lpNaigfrm ( as the name suggests) is a Navigator form (with a tree view) much like a tool-window.

    Private Sub MDIForm_Resize()
    If lpNavigFrm.WindowState = vbNormal Then
    lpNavigFrm.Move 0, 0, Me.ScaleWidth / 5, Me.ScaleHeight
    End If
    End Sub

    This works even if the MDI has a tool-bar( or a picture box acting as a tool box) & status bar.
    Also tie up the resize events of the tool-window with that of mdi(parent) form

    Ravi Kiran


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured