Drawing.Icon to Drawing.Image, anyone?

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.
 
H

Herfried K. Wagner [MVP]

* "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()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top