473,395 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Custom Control and icon in toolbox

Hi,

I've created my customer control from a ListView.
Now, i would like to allocate it a bitmap in order to see it in my
ToolBox bar.

For this i use :

<ToolboxBitmap(GetType(ARSortListView), "tbxARSortListView.bmp")> _
Public Class ARSortListView
Inherits System.Windows.Forms.ListView
....
End Class

Where tbxARSortListView.bmp is the name of my image and ARSortListView
the name of my class.

my bitmap is a 16x16 pixels side and in 256 colors...
unfortunately for me this bitmap doesn't appear in my Toolbox. Instead
of tmy bitmap i have the standard icon of new customer control...

why ?

thanks a lot,
Maileen
Nov 21 '05 #1
1 2877
1. The project should include tbxARSortListView.bmp
2. Set Build Action of tbxARSortListView.bmp to Embedded Resource.

"Maileen" wrote:
Hi,

I've created my customer control from a ListView.
Now, i would like to allocate it a bitmap in order to see it in my
ToolBox bar.

For this i use :

<ToolboxBitmap(GetType(ARSortListView), "tbxARSortListView.bmp")> _
Public Class ARSortListView
Inherits System.Windows.Forms.ListView
....
End Class

Where tbxARSortListView.bmp is the name of my image and ARSortListView
the name of my class.

my bitmap is a 16x16 pixels side and in 256 colors...
unfortunately for me this bitmap doesn't appear in my Toolbox. Instead
of tmy bitmap i have the standard icon of new customer control...

why ?

thanks a lot,
Maileen

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: steve bull | last post by:
I created a control and added to my toolbox and it worked fine including the controls icon until I decided to merge the project that contains the control into an existing project. I have included...
2
by: Showjumper | last post by:
I want my custom control to have its own toolbox icon. I create the bmp file and it has the same name as the control class. I then set it to embedded resource but it still doesnt appear in the...
2
by: Showjumper | last post by:
I still cant get an icon to display for my custom server control in the toolbox. I create a bmp that is the same name as the class of the control. I set it to embedded resource and then build but...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
1
by: Maileen | last post by:
Hi, I've created a custom control and it is display on MyControl tab in Toolbox. but i would like to know how : 1. can i set a particular icon to my customer control to see it displayed in...
6
by: rodchar | last post by:
hey all, i'm trying to add an image to my custom control so that it looks unique in my toolbox. i saw in a webcast that all you had to do was add the image to the project and change the Build...
2
by: Tony Hedge | last post by:
Hello, Framework: NET 1.1, Language VB So I am going through the basic walkthrough example in .NET on how to create a simple custom control. Takes about 2 minutes and when done I have a DLL...
2
by: --== Alain ==-- | last post by:
Hi, How can i custom the icon (shown on ToolBox Palette) of my Custom Visual C++.NET control ? Moreover, if i want to place my custom control on a particular TAB, how can i do that ? ...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.