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!




Reply With Quote