To this, you first create your source icon, I assume using the stream returned by GetManifestResourceStream. I take it youre doing this already. You then use the following to extract the different sized icons from it:
Code:
iconLarge = New Icon(iconSource, New Size(32, 32))
iconSmall = New Icon(iconSource, New Size(16, 16))
C#:
iconLarge = new Icon(iconSource, new Size(32, 32));
iconSmall = new Icon(iconSource, new Size(16, 16));
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.