Class libraries

G

Guest

hi,

i want to write a class library with icons in it.

1. how do i do this?
2. if i can do it, how do i use one of the icons for my application, or the
files i create using it?
 
D

Dmytro Lapshyn [MVP]

Hi,

One of possible ways is:

* Add the icon files to the class library project and change their compile
type to "Embedded resource".
* Compile the library assembly.
* Consume the files from the calling assembly by using
Assembly.GetManifestResourceStream.
 
G

Guest

hi,

thanks Dmytro

--
Alvo von Cossel I of Germany


Dmytro Lapshyn said:
Hi,

One of possible ways is:

* Add the icon files to the class library project and change their compile
type to "Embedded resource".
* Compile the library assembly.
* Consume the files from the calling assembly by using
Assembly.GetManifestResourceStream.

--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]


Alvo von Cossel I said:
hi,

i want to write a class library with icons in it.

1. how do i do this?
2. if i can do it, how do i use one of the icons for my application, or
the
files i create using it?
 

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