Results 1 to 7 of 7

Thread: Bold or italic characters in a msgbox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    19
    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.

  2. #2
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242
    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

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  4. #4
    Guest
    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

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    19
    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.

  6. #6
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242
    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

  7. #7
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width