Hi there

This is a newbie question.
How can i put some characters in bold in a message box? I tried with \b
but couldn't succeed.
And how to insert a CRLF in a message box?

Thanks for your help

Phil

Re: Bold characters in a message box by Franz

Franz
Sat Nov 11 14:05:09 CST 2006

Youri Ligotmi wrote:
> Hi there
>
> This is a newbie question.
> How can i put some characters in bold in a message box? I tried with
> \b but couldn't succeed.

If you find a way... tell us :)

> And how to insert a CRLF in a message box?

text & vbcrlf & text

or

text & chr(13) & text




Re: Bold characters in a message box by dNagel

dNagel
Sat Nov 11 17:23:54 CST 2006

see if this possibly applies?

D?

http://www.standardreporting.net/survival/view.aspx?_@id=534327



Franz aRTiglio wrote:
> Youri Ligotmi wrote:
>
>> Hi there
>>
>> This is a newbie question.
>> How can i put some characters in bold in a message box? I tried with
>> \b but couldn't succeed.
>>
>
> If you find a way... tell us :)
>
>
>> And how to insert a CRLF in a message box?
>>
>
> text & vbcrlf & text
>
> or
>
> text & chr(13) & text
>
>
>
>

Re: Bold characters in a message box by Youri

Youri
Sun Nov 12 04:05:09 CST 2006

dNagel a écrit :
> see if this possibly applies?
>
> D?
>
> http://www.standardreporting.net/survival/view.aspx?_@id=534327

Unfortunatly it doesn't. Anyway, thanks for your help

Re: Bold characters in a message box by mayayana

mayayana
Sun Nov 12 10:00:40 CST 2006


Putting vbCrLf into the string works:
s = s & vbCrLf & "more text"
msgbox s

But you can't do bold. That's HTML.
MsgBox is just a very simple operation,
based on a Windows API function. It
was meant to do just as it says: show a
simple message. Since people deal
with so many of those in a day it made
sense to design it in a standardized way.
So it always looks the same and people
can instantly recognize what they've been
presented with.

Your options, if you want to design your
own GUI, are to either use a component
or use IE.

1) Using IE:
http://www.jsware.net/jsware/scripts.php3#msgb

The above links to a VBS class that can be pasted
into a script to show IE windows that are virtually
indistinguishable from MsgBox. But they're actually
IE pages, so you can do what you want with them.
Samples are here:

http://www.jsware.net/jsware/msggal.php3

There is one problem, though: Based on other
posts here recently, it appears that these message
boxes break in IE7 and will require using a clunky
version that shows the message in a
stripped-down IE window. Or, if run without editing
they'll apparently take up the whole screen instead
of being a small message window.

(Then again, if people are dumb enough to install
IE7 and WGA.... :)

2) Using a component:

http://www.jsware.net/jsware/scripts.php3#draw

This link goes to a drawing component. It includes
a full set of drawing functions as well as a blank
window that can be drawn to or "skinned". The blank
window can also have hotspots designed. So, in
other words, you can make a picture of a message
box the way you like it, define the hotspots where
the "buttons" are, and use it just like you would
a message box.
It's more work than the IE version, but it allows you
to make very professional-looking (and/or creative)
GUI windows to use as message boxes.

> >
> > This is a newbie question.
> > How can i put some characters in bold in a message box? I tried with
> > \b but couldn't succeed.
>
> If you find a way... tell us :)
>
> > And how to insert a CRLF in a message box?
>
> text & vbcrlf & text
>
> or
>
> text & chr(13) & text
>
>
>