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

Dialog Box Questions

Status
Not open for further replies.

Skie

Programmer
Jun 21, 2004
475
US
Is it possible to prevent a dialog box from closing upon pushing a button. I know I can have a dialog function use a case 2 (button value changed) to determine the action to take. Is it possible to tell it not to close the dialog though?

I know I can loop the dialog until they cancel, but is it possible to have the new dialog box open in the same location as it was closed.
 
I don't think it's possible to not close the box. If you're interested in real functionality you should move to VBA as it will give you many more options.

I would think you could store the top and left of the box in variables upon close and then use them in the dialog box to re-open it in the same location.

calculus
 
Any idea where I how to determine the top and left values when the box is closed?
 
No, but my guess would be dlg.top and dlg.left. The return on this will be small for a large amount of work.

Good luck,

calculus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top