2
Answers

how child form is completely fitted between menustrip and statusstrip in MDI form

Photo of Hitesh Bhatt

Hitesh Bhatt

14y
10.8k
1
Hi,
I have certain problem regarding the position of child form when it is call from a MDI form.
I have written a code when i click on menu.
Dim x as New frm1
x.StartPosition = formstartPosition.centerParent
x.showdialog
But when i write this code the form will open in center position, but i want that it should be shown in whole MDI between MenuStrip and StatusStrip.

If any body knows the answer, plz reply

Thanks in advance

Answers (2)

0
Photo of Krishna Garad
NA 16.5k 6.2m 14y
you are using showdialog() to show the child form instead use only x.Show() if the child window you want as dialog window then only use showdialog(). for fit child window in mdi window set child window windowstate=maximized it will fit the window in mdi.
-1
Photo of vijay
NA 160 17.6k 14y
hi...
        you can use the position to display the from ...
        you can use this code
        me.location=new point (0,0)
        me.show()
http://vbdotnetaddict.blogspot.com