How do I add an Icon to my project?

T

trint

I already have the icon added as an item in the solution.

I tried this:

this.Icon = ((System.Drawing.Icon)(resources.GetObject(@"C:\Inetpub
\wwwroot\c#NewTest\WebResponse3\WebResponse\WebResponse\wr3.ico")));

and Nothing.
Any help is appreciated.
Trint
 
J

j1mb0jay

trint said:
I already have the icon added as an item in the solution.

I tried this:

this.Icon = ((System.Drawing.Icon)(resources.GetObject(@"C:\Inetpub
\wwwroot\c#NewTest\WebResponse3\WebResponse\WebResponse\wr3.ico")));

and Nothing.
Any help is appreciated.
Trint

This is the code i use and it seems to work fine for me.....

this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
 

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