Results 1 to 5 of 5

Thread: MessageBox Image to PictureBox?

  1. #1

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681

    MessageBox Image to PictureBox?

    I am trying to create my own exception form and want to show the message box icons in it. For example:
    VB Code:
    1. Me.pbxImage.Image() = MessageBoxIcon.Error

    I am getting a squiggly telling me that MessageBoxIcon.Error cannot be converted to System.Drawing.Image. How can I convert the MessageBoxIcon.Error to System.Drawing.Image type? I have tried CType, GetType, etc. but couldn't get it to go.

    I am trying to avoid bringing the icons into my project.

    Thanks!

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I don't think you can, MessageBox.Error is just a flag (integer/enum) telling the function to show that icon, it is not the icon itself. Here are the icons, there are some newer better ones too but I don't have those with me. If you want them let me know and I'll post them later. They are just more gradient looking.

  3. #3

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    Thanks! I would love to get the other icons if you don't mind

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Here you go.

  5. #5

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    Cool! Thanks!

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