A MsgBox orieatation

R

Rani

guys I would like to control the text alignment within a MsgBox.
the default is English obviously cause the text aligns itself to the left.
for me as an Hebrew speaker it is a bit of an issue.

another thing is how do I add a picture to the same Msg Box ?

thanks

Rani
 
D

Douglas J. Steele

There's really no way to alter the existing message box. The best thing to
do would probably be to create your own modal form that you can use instead
of the built-in message box.
 
R

Rani

any idea on how to start doing it ?

Douglas J. Steele said:
There's really no way to alter the existing message box. The best thing to
do would probably be to create your own modal form that you can use instead
of the built-in message box.
 
D

Dan Artuso

Hi,
Start by creating a modal form. Add a text box or label
and set the alignment from the toolbar. If you want to display
a picture, add an image control. Also put a command button
with the caption 'Okay' on it. The on click event will simply close
the form.

When you open the form (which you'll open modally), pass the text you want displayed in the OpenArgs
argument of the OpenForm method.

Check out OpenForm and OpenArgs in help.
Pay attention to all the arguments of the OpenForm method.
 

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