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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Position a form in a relative location.

Status
Not open for further replies.

dRahme

Technical User
Joined
Jun 24, 2004
Messages
286
Location
US
Hello, I have a bit of a cosmetic problem.

I have an unbound form that loads another form on open. The other form has no borders and to the viewer this form appears as one single form.

This all works as it should.

The problem is, is there a method for placing the second form in a relative location to the main form using a control on the main form....

Meaning, if there is a button on the main form, can I say on load of the second form, that I wish to place that second form 125 twips down and 150 twips to the right of the lower right hand corner of the command button on the main form.

The reason for this is that there are multiple users and they all need to allowed their own personal tool bars, etc.
I currently place the second form using the MoveSize command which isn't quite appropriate because depending on the number of toolbars open, the location of the second form needs to adjust.

I cannot insert a subform and position it in that manner.

I think I need to get the location of an object on the main form and then place the second form in a position relative to that, which I do not know how to do.

I would appreciate any help with this.

Thank You, dRahme
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top