A MsgBox orieatation

  • Thread starter Thread starter Rani
  • Start date Start date
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
 
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.
 
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.
 
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.
 
Back
Top