Consulting

Results 1 to 14 of 14

Thread: Solved: vbExclamation in UserForm

  1. #1
    VBAX Contributor compariniaa's Avatar
    Joined
    Jun 2006
    Location
    Santa Clarita, CA
    Posts
    117
    Location

    Solved: vbExclamation in UserForm

    I'd like to include the vbExclamation picture (as in, msgbox "Example", vbExclamation) in a UserForm, but I don't know the path for its filename. Does anybody know?

    oh yeah, I've already tried searching (hidden and system folders as well) for "critical" and "exclamation"

  2. #2
    VBAX Guru
    Joined
    Mar 2005
    Posts
    3,296
    Location
    Doesn't it put it in when you include the vbExclamation in your msgbox code?

  3. #3
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    I am not sure where it is stored, but I would just take a screen shot of it, and attach it directly to the form.

  4. #4
    VBAX Contributor compariniaa's Avatar
    Joined
    Jun 2006
    Location
    Santa Clarita, CA
    Posts
    117
    Location
    Quote Originally Posted by OBP
    Doesn't it put it in when you include the vbExclamation in your msgbox code?
    it does when i code for a msgbox, but i want it to show up on a userform.

    DRJ, if i did that, would other users need to have that file on their computer? pictures in a userform is uncharted waters for me

  5. #5
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    No it will travel with the file. see attached. it is a picture on a form with a button added.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  6. #6
    VBAX Contributor compariniaa's Avatar
    Joined
    Jun 2006
    Location
    Santa Clarita, CA
    Posts
    117
    Location
    ok...then I guess that makes knowing where the file is useless. Thanks for all your help everyone

  7. #7
    VBAX Mentor Marcster's Avatar
    Joined
    Jun 2005
    Posts
    434
    Location
    They reside in the dll file:
    <system root> system32\user32.dll
    I think.

    Marcster.

  8. #8
    VBAX Contributor compariniaa's Avatar
    Joined
    Jun 2006
    Location
    Santa Clarita, CA
    Posts
    117
    Location
    thanks marc!

  9. #9
    Quote Originally Posted by Marcster
    They reside in the dll file:
    <system root> system32\user32.dll
    I think.

    Marcster.
    Marc, you are correct. But how we should use to apply any of those image to userform ??

  10. #10
    VBAX Newbie
    Joined
    Feb 2008
    Posts
    2
    Location
    Yes...

    Can any of you make it obvious for a newbie also?

    thanks Carsten

  11. #11
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    you have to do a screen capture of the image and then save it using a graphics program as a jpg.....then insert an image control in your userform and use the jpg you created.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  12. #12
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    If it's in the dll Steve, you should be able to use a program like Icon Extractor to pull it out.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  13. #13
    VBAX Newbie
    Joined
    Feb 2008
    Posts
    2
    Location
    Quote Originally Posted by xld
    If it's in the dll Steve, you should be able to use a program like Icon Extractor to pull it out.
    oh yeah. Very nice. Thanks guys!

  14. #14
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Thanks Bob, I guess I didn't exactly understand the problem. You could also do a screen capture on one you made from a msgbox as I understood from post #4
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

Posting Permissions

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