Drawing.Icon to Drawing.Image, anyone?

  • Thread starter Thread starter Phill. W
  • Start date Start date
P

Phill. W

I'm creating a Form from which I will derive [lots of] others.
On each of these Forms, there will be a Picture Box which should
duplicate the Form's Icon property (only bigger).

In my base Form class, I've created a Shadow .Icon property so that
I can "intercept" setting the Icon and duplicate it into the PictureBox.

So far, so good; but now I'm stuck - How do I convert the
Drawing.Icon being fed into the Form's .Icon property into a
Drawing.Image that I can put into the Picture Box?

Any suggestions?

TIA,
Phill W.
 
* "Phill. W said:
I'm creating a Form from which I will derive [lots of] others.
On each of these Forms, there will be a Picture Box which should
duplicate the Form's Icon property (only bigger).

In my base Form class, I've created a Shadow .Icon property so that
I can "intercept" setting the Icon and duplicate it into the PictureBox.

So far, so good; but now I'm stuck - How do I convert the
Drawing.Icon being fed into the Form's .Icon property into a
Drawing.Image that I can put into the Picture Box?

\\\
Me.PictureBox1.Image = Me.Icon.ToBitmap()
///
 
Back
Top