PC Review


Reply
Thread Tools Rate Thread

Drawing.Icon to Drawing.Image, anyone?

 
 
Phill. W
Guest
Posts: n/a
 
      24th May 2004
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.


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      24th May 2004
* "Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> scripsit:
> 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()
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing Custom Shape Using PowerPoint Drawing Tool Mosfiqur Rahman Microsoft Powerpoint 0 6th Jul 2008 01:06 PM
exporting drawing created in PowerPoint in Word as a drawing amit Microsoft Powerpoint 4 16th Mar 2008 04:19 AM
Mirror / rotate image ( System.Drawing.Graphics / System.Drawing.Drawing2D.Matrix) Eduard Witteveen Microsoft C# .NET 3 17th Jul 2006 01:26 PM
Drawing tool bar and drawing canvas tools are dimmed with new pag. =?Utf-8?B?Sm9obk1j?= Microsoft Frontpage 3 19th Jan 2005 04:11 PM
Drawing tool bar and drawing canvas tools are dimmed with new pag. =?Utf-8?B?am1jY2FkYW1z?= Microsoft Frontpage 2 19th Jan 2005 02:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:15 PM.