How i can adjust the client area of the MDI form
-
Hello Friends Actually i want to set the client area of MDI form for its child windows, because whenevr i maximize the child window it starts from (0,0) co-ordinates of MDI form. but bec i have tree viwver in my mDI form i have to change it so that i can see my child window and tree view too. plz help me out Avinash patil
-
Hello Friends Actually i want to set the client area of MDI form for its child windows, because whenevr i maximize the child window it starts from (0,0) co-ordinates of MDI form. but bec i have tree viwver in my mDI form i have to change it so that i can see my child window and tree view too. plz help me out Avinash patil
You'll have to enumerate the Control collection of the MdiParent form. Look for a control of Type "MdiClient". When you find it, you can call it's SetBounds method or set it's Location to appropriate values.
For Each c As Control In MyMdiParent.Controls If TypeOf c Is MdiClient Then Dim client As MdiClient = DirectCast(c, MdiClient) client.Location = New Point(...) Exit For End If Next
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008