2 Attachment(s)
[RESOLVED] Form within form within an MDI interface
Hi all.
Can someone help me out here.
I want my documents to load up a new form within them but I’m experiencing two problems.
First is that I can only get the form to load in the first document.
And second the form within the form hides my scroll bars which I want always on top.
Attached is a screendump of what I’m experiencing and attached is a shell project.
Any suggestions?
Re: Form within form within an MDI interface
Can i ask why do you need a form to be inside another mdichild, which is inside a mdiform? There might be an easier way to achieve what you are trying to do
Re: Form within form within an MDI interface
Basically I want to allow the user the option of displaying a results flexgrid that can be moved around the form.
Probably doesn't need to be a form but I'd like the user to know understand that they can move it.
Re: Form within form within an MDI interface
Worked out how to load the same form within two different forms.
Obviously the same way as the MDI form does it.
Can anyone offer anything on the slider being hidden?
Re: Form within form within an MDI interface
Or alternatively can I make a flexgrid float or a picture float with a flexgrid in it?
Re: Form within form within an MDI interface
Worked it out.
I had to create a frame in the parent form window, put all the parent form controls into it then add this to the parent form.
VB Code:
Private Sub Form_Load()
Me.Show
Frame1.Left = 0
Frame1.Top = 0
End Sub
Sub Form_Resize()
'Resize Frame1 to form size
Frame1.Width = Me.Width
Frame1.Height = Me.Height
And add this to the child form.
VB Code:
Private Sub Form_Load()
SetParent Me.hWnd, MDI.ActiveForm.Frame1.hWnd
End Sub
Can I rate my own post?