I’d like to use the standard error icon (Standard Icons) on a Windows Forms dialog. How can the error icon be loaded into an Image for display?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By using Icon.ToBitmap()
EDIT:
Three years later and one more upvote, I feel compelled to direct people who just want to draw the icon to a graphics object to read the answer by @Hans Passant. It’s a better solution.