PC Review


Reply
Thread Tools Rate Thread

Adding icon on user control

 
 
Ellis Yu
Guest
Posts: n/a
 
      19th Nov 2004
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


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      19th Nov 2004
"Ellis Yu" <(E-Mail Removed)> 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
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a user more than one group through user accounts in control panel. gchandrujs via WindowsKB.com Windows XP Security 1 6th Sep 2007 11:42 PM
Adding icon, toggle btn, or check box to form control box farseer Microsoft Dot NET Framework Forms 2 8th Nov 2006 07:06 AM
Adding icon, toggle btn, or check box to form control box farseer Microsoft C# .NET 0 6th Nov 2006 06:03 AM
Adding a web user control to a web control library rsam2011@yahoo.com Microsoft ASP .NET 1 11th Oct 2006 04:22 AM
Adding picture/icon in ListView Control SiewSa Microsoft Dot NET Compact Framework 1 13th May 2004 06:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:30 AM.