Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: msgbox color

  1. #1
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926

    Unanswered: msgbox color

    I know it's a wierd question but does anyone know if you can change the color of a msgbox?
    ie.
    Dim QI as integer
    QI = msgbox("This is a red msgbox...",vbyesno)

    I also would like to change the font/size but that might be asking too much.
    Last edited by pkstormy; 05-30-07 at 16:36.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  2. #2
    Join Date
    May 2005
    Posts
    1,191
    I don't know if this helps.
    Me.Geek = True

  3. #3
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    I don't want to set it globally though or mess with the desktop settings. Just this one instance.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  4. #4
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Check out the code bank re bespoke message boxes. I need to check if I put in all my links & research. I know I found loads that I did not get round to putting in but I think I covered colours.....
    Testimonial:
    pootle flump
    ur codings are working excelent.

  5. #5
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Ah - I did not. Ok - I will see if I can dig them out.
    Testimonial:
    pootle flump
    ur codings are working excelent.

  6. #6
    Join Date
    Aug 2006
    Posts
    559
    Paul,

    I wonder if this will do what you wanted?

    http://www.peterssoftware.com/sysclrs.htm

  7. #7
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Oh plop - I've lost all my notes and links. What a plonker!

    Sorry Paul.
    Testimonial:
    pootle flump
    ur codings are working excelent.

  8. #8
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    Actually I don't want to do this in vba but in a vbscript. I need to avoid changing anything with their system settings. It's more of a nicety than a necessity though! (you know - where the user says "It's not a big deal but can you do this?")
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  9. #9
    Join Date
    Aug 2006
    Posts
    559
    Yeah, no worries. I'll see if anyone I know can figure it out. Though it seems that I know more than most of them.

  10. #10
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Instead of using a messagebox - why not replicate the thing as a modal form?
    George
    Home | Blog

  11. #11
    Join Date
    Aug 2006
    Posts
    559
    Quote Originally Posted by georgev
    Instead of using a messagebox - why not replicate the thing as a modal form?

    I was going to suggest that also. Figure it'd be a whole lot easier than trying to change the system properties for message boxes. though there is a way to do that, given in the above post.

  12. #12
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    I would if it was MSAccess but it's a vbscript. I don't have the option of creating a modal form (MSAccess isn't involved - sorry - I should've probably posted this in the vb forum). But I thought if it could be done with the msgbox in MSAccess, it could also be done with a vbscript.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  13. #13
    Join Date
    Aug 2006
    Posts
    559
    Paul,

    Found this, it says it does what you are asking:

    http://www.windowsitpro.com/Articles...7533.html?Ad=1

  14. #14
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    Cool. Thanks! I'll check it out.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  15. #15
    Join Date
    Aug 2006
    Posts
    559
    Quote Originally Posted by pkstormy
    Cool. Thanks! I'll check it out.

    Did the link go through? Cause I can't see it now!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •