Can an Icon be placed in pictureBox on Form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jeaux Me

    Can an Icon be placed in pictureBox on Form

    I want to be able to place one of the MessageBox Icons in a PictureBox that is on a form. I am trying to get the same effect as using a seterror (via ErrorProvider).

    I would use an ErrorProvider with a Null errormsg but it turns off the icon.

    I am basically trying to do something like the following:

    myPictureBox.im age = MessageBoxIcon. Hand;
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    try to convert it to bitmap and see what happens.some thing like this

    yPictureBox.Ima ge =3DBitmap.FromH icon(SystemIcon s.Hand.Handle);

    Comment

    Working...