Click to See Complete Forum and Search --> : How do I make one form the child of another
wilton
January 4th, 2000, 05:35 PM
I have two different forms. One is the main form, the other is the options box. When i click on the button to display the options box I want it to come up as centered on the main dialog box. I've tried using the setting centered on parent, but that doesn't work, because the main form isn't the parent of the options form. Any ideas?
dave clarke
January 5th, 2000, 03:57 AM
Set the MDIChild property of the Options dialog to True. Ensure the main form is based on an MDI form object.
Crazy D @ Work
January 5th, 2000, 06:05 AM
frmOptions.Show vbModal (or modeless), Me
Me is the owner form so it should be centered
Crazy D @ Work :-)
January 5th, 2000, 09:47 AM
private Sub Command1_Click()
YourForm.Show false ,me
'Change false to true to display the form as modal
End Sub
Rippin
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.