Why does VB ignore my width and height settings of my Mdi child form.
I have a parent form. On the left is a treeview with a splitter. I
want to open a child form up in the remaining space and size the
controls on it according to the width of the main form. So:
On the parent form:
Dim myFrm2 as Frm2
Frm2.MdiParent = Me
Frm2.Show()
On the child Form:
Private Sub Frm2_SizeChange d(ByVal sender As Object, ByVal e As
System.EventArg s) Handles MyBase.SizeChan ged
Listbox1.Width = Me.Width - 25
Listbox1.Height = Me.Height - 25
End Sub
What this does is resize the control to the size of the parent form not
the child form. Any ideas????
--
Daniel
MCSE, MCP+I, MCP in Windows 2000/NT
--------------------------------------
remove the 2nd madrid from my mail address to contact me.
I have a parent form. On the left is a treeview with a splitter. I
want to open a child form up in the remaining space and size the
controls on it according to the width of the main form. So:
On the parent form:
Dim myFrm2 as Frm2
Frm2.MdiParent = Me
Frm2.Show()
On the child Form:
Private Sub Frm2_SizeChange d(ByVal sender As Object, ByVal e As
System.EventArg s) Handles MyBase.SizeChan ged
Listbox1.Width = Me.Width - 25
Listbox1.Height = Me.Height - 25
End Sub
What this does is resize the control to the size of the parent form not
the child form. Any ideas????
--
Daniel
MCSE, MCP+I, MCP in Windows 2000/NT
--------------------------------------
remove the 2nd madrid from my mail address to contact me.
Comment