Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening a form modally

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I am opening a form modally and cannot get its position on screen relative to the form that opens it.
IE. I have a function which centers the form within it's parent that I run on all my forms on open, but with this one, because I am opening it modally, it does not seem to work...

any ideas??
 
There is a property on each form called StartUpPosition. If you set this to 1 - CenterOwner, then your modal form will automatically center itself on the parent form.

Hope This Helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top