Assure that you activate a form, or set focus to one of it's controls, before you issue the messagebox. Otherwise, the messagebox may try to hide behind the form:-)
>Hi,
>
>is there any way to keep the Messagebox() AlwaysOnTop, we are using the following code with a "messagetimeout", the user can use Alt-Tab the message will go back.
>
>
>cMessageTitle = 'Transaction Deletion'
>cMessageText = 'Do You Want To Delete The Current Voucher ?'
>nDialogType = 4 + 32 + 256
>messagetimeout = 999999
>
>* 4 = Yes and No buttons
>* 32 = Question mark icon
>* 256 = Second button is default
>
>nAnswer = Messagebox(cMessageText, nDialogType, cMessageTitle,messagetimeout)
>
>
>
>Best Regards
Imagination is more important than knowledge