Good catch Neil :) Back to the hWnd.
Cetin
>Hi Cetin,
>
>Turn the volumn up on your computer so you can hear the ding when the messagebox comes up. Now run the code below. Open a new document when WORD comes up and then click on format|font. Allow the font dialog to stay on the screen for 20 to 50 seconds. You won't get an ole busy error but you will fall out of the sleep loop. You will hear the ding of the vfp messagebox that proves it.
>
>Any thoughts?
>
>Dr. G. (Neil)