Message box appears under the form

Y

Yahya Saad

Dear Sirs,

I am in the process of developing a com add-in, where a message box
is popped up before an item is sent, therefore the item appears to freeze
and the message box appears under the form. How can I present the message
box at the top?

Thank You
Yahya
 
K

Ken Slovak - [MVP - Outlook]

Use a form to display your dialog instead of a MsgBox and use Me.ZOrder 0 in
the Form.Activate event handler. If you want your form to be modal so a
response is provided before the code continues then open your form modally.
 
Y

Yahya Saad

Thank you, it went fine.


Ken Slovak - said:
Use a form to display your dialog instead of a MsgBox and use Me.ZOrder 0 in
the Form.Activate event handler. If you want your form to be modal so a
response is provided before the code continues then open your form modally.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top