http://hermantan.blogspot.com/2008/07/centering-vfp-messagebox-in-any-form.html*how to use
** ** lo_MsgBox.hWnd = myForm.hWnd && center MessageBox in myForm && center MessageBox in myForm
by** lo_MsgBox.hWnd = hWnd
and add at the top of this mymessagebox.prg this linelparameters hwnd &&receive a handle of any window as parametercut all the "?" in the mymessagebox.prg to dont echoing result on the form
lo_MsgBox = Null Release lo_MsgBox clea dlls &&important..can name the APis used is better ("..","..",...)from any form for ex make a button with this code
do mymessagebox with thisform.hwndand see the diffrent messagebox (3th messagebox to 6th)...move the form and repeat...the messagebox is centered on the window (form).