Click to See Complete Forum and Search --> : ToolWindow Resizing


Yves Theys
June 2nd, 1999, 03:09 AM
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

Ravi Kiran
June 2nd, 1999, 03:37 AM
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