By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,953 Members | 1,489 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,953 IT Pros & Developers. It's quick & easy.

Adding icon on user control

P: n/a
Hi all,

I'd tried to follow the instructions from msdn for adding icon image
for a control. I've checked the name of bmp file is same as the control name
and turn the bmp file to "Embedded Resource". After building the project
again, the icon of my user control is the same as default. I'm not sure it's
related to my VB.Net version is a standard edition or not. Anyone know
what's wrong my steps? Thanks

Rdgs
Ellis
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Ellis Yu" <el******@transfield.com> schrieb:
I'd tried to follow the instructions from msdn for adding icon image
for a control. I've checked the name of bmp file is same as the control
name
and turn the bmp file to "Embedded Resource". After building the project
again, the icon of my user control is the same as default. I'm not sure
it's
related to my VB.Net version is a standard edition or not. Anyone know
what's wrong my steps?


Create a 16 x 16 pixd give it the name of the class ('Class BlaBla' ->
"BlaBla.bmp"). Then you can add the bitmap to the project and set its build
action to embedded resource. Extend your code like this:

\\\
<ToolboxBitmap(GetType(BlaBla))>
Public Class BlaBla
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.