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

Positioning the messagebox on the screen

Status
Not open for further replies.

amills

Programmer
May 30, 2003
22
US
Is there a way to position the messagebox at a certain screen location ?
 
No, not with the Windows messagebox. You may be able to find one that someone has built and made available, or you can build your own version.


-BP (Barbara Peisch)
 
amills,

I have to agree with BPeisch. Eventhough actually there is a way, but the workaround doesn't looks good. It is better to get the API wrapper or make your own VFP version.

Look at this: thread184-748784.
It's a working example to positioning the messagebox, also there are jimoo's FAQ to make your own VFP messageBox


-- AirCon --
 
Amills,

Another possibility would be to write your own MessageBox() function, which would display a custom modal form. You can make it look like a standard message box, but as it would be an ordinary VFP form, you could control all its properties, including its position on the screen.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Amills

You can take a look at faq184-2033 "A replacement to the native messabox()", and change to position of the class to whatever suit your need.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top