|
-
Oct 7th, 2000, 11:23 AM
#1
Thread Starter
Junior Member
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.
-
Oct 7th, 2000, 11:25 AM
#2
Addicted Member
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
Zvonko Bostjancic
Ilirska Bistrica, Slovenia
[email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
-
Oct 7th, 2000, 11:37 AM
#3
Monday Morning Lunatic
You can't do it through API - you'd have to make your own.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 7th, 2000, 11:43 AM
#4
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
-
Oct 7th, 2000, 12:44 PM
#5
Thread Starter
Junior Member
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.
-
Oct 7th, 2000, 03:10 PM
#6
Addicted Member
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
Zvonko Bostjancic
Ilirska Bistrica, Slovenia
[email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
-
Oct 7th, 2000, 03:42 PM
#7
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|