D
Daniel
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_SizeChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.SizeChanged
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????
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_SizeChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.SizeChanged
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????