|
-
Jul 7th, 2003, 03:58 PM
#1
Thread Starter
Fanatic Member
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:
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!
-
Jul 7th, 2003, 05:04 PM
#2
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.
-
Jul 8th, 2003, 06:38 AM
#3
Thread Starter
Fanatic Member
Thanks! I would love to get the other icons if you don't mind
-
Jul 9th, 2003, 01:46 AM
#4
-
Jul 9th, 2003, 06:35 AM
#5
Thread Starter
Fanatic Member
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
|