icon and tab of my custom control

M

Maileen

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 Toolbox.
2. How to create a .dll of exe of my customr control only ?

thx,
Maileen
 
H

Herfried K. Wagner [MVP]

Maileen said:
I've created a custom control and it is display on MyControl tab
in Toolbox.

[...]
1. can i set a particular icon to my customer control to see it displayed
in Toolbox.

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
 

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