When I use the msgbox function to show a messagebox to the user, can I set the text of the msgbox to bold or italic?
Thanks in advance!
Dave.
Printable View
When I use the msgbox function to show a messagebox to the user, can I set the text of the msgbox to bold or italic?
Thanks in advance!
Dave.
I think this can be done through API, but I don't know how.
But, you can make your own MessageBox function (you need a form, buttons, and a bit of imagination). Or you can find it on http://www.planetsourcecode.com/vb (in search type Message box).
Zvonko
You can't do it through API - you'd have to make your own.
After you've done that, you'd want to modal it so that nothing else can be accessed until it is unloaded, like a real Msgbox.
Code:Msgfrm.Show vbModal
Parksie, at first I thought you meant making my own API :)
But I've created my own msgbox now and it works great. Thanks all!
Dave.
As I thought it's possible to modify MessageBox through API I was right - now I know it (I found an example). Here's the one I found on PSC:
http://www.planetsourcecode.com/xq/A...s/ShowCode.htm - this one works fine on my computer
Hmm...it seems I was confused ;).
I meant you couldn't change parts of the text through API. It's definitely possible to change all of it. Anything else would require some serious coding.