|
-
Dec 12th, 2006, 10:09 AM
#1
Thread Starter
Fanatic Member
-
Dec 12th, 2006, 10:28 AM
#2
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
-
Dec 12th, 2006, 10:34 AM
#3
Thread Starter
Fanatic Member
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.
-
Dec 12th, 2006, 02:55 PM
#4
Thread Starter
Fanatic Member
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?
-
Dec 12th, 2006, 03:00 PM
#5
Thread Starter
Fanatic Member
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?
-
Dec 12th, 2006, 06:09 PM
#6
Thread Starter
Fanatic Member
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|