Posted by: Xiaonan Ji | November 19, 2010

How to embed icons/images in your .net project and use them in your code

First, put your icons in a folder under your project folder. Go to Properties/Resources, add existing icons. Go to your code and use Properties.Resoureces.ICONNAME to use the resource. Once you put icons in Resources, VS should recognize them and assist you with Intelisense.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.