the forms are resizing and not showing up as there original size and the menu's are not showing up on the forms but the MDIForm
Printable View
the forms are resizing and not showing up as there original size and the menu's are not showing up on the forms but the MDIForm
The menu's go to the parent form by default, I'm not sure how to fix that, never needed to.. I'll look into it though. But the sizing can be done when the form is loaded eg.
Private Sub MdiForm1_Load()
Form1.Width = 123
Form1.Height = 1234
End Sub
That's given that the form loads on mdiform load, otherwise use it in the control you're using to load it.
If you're only going to show one child form at a time, you can have it maximized. That way it will be full size just below your parent form's menus.
Change the form's BorderStyle property to "Fixed Single".Quote:
Originally Posted by psychotomus
This is default behavior for a MDIForm. If you want to change that, do a search for "MDI negotiate menus". Any solution is going to require some sort of workaround.Quote:
Originally Posted by psychotomus
still can't figure out how to add menu's to MDI Childs. I really need them -_-
You can't actually do it with a MDIchild but you can fake it. In this example Form1 is a normal form,Quote:
Originally Posted by psychotomus
Code:Option Explicit
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Sub MDIForm_Load()
SetParent Form1.hWnd, MDIForm1.hWnd
Form1.Show
End Sub
the menu's still don't show up on the original form...
Are you saying that the menus don't show up on Form1?
In case there's any confusion, here's a complete project.
o wow =)