Icon for User Control

  • Thread starter Thread starter George Labljuk
  • Start date Start date
G

George Labljuk

Hi
I have created my user control and I would like add it in control toolbox
with my icon but I do not know how?
Please Help!
 
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 . . .

???

End Class

But I do not know how create BlaBla?
 
George Labljuk said:
Extend your code like this: \\\

<ToolboxBitmap(GetType(BlaBla))>

Public Class BlaBla . . .

???

End Class

But I do not know how create BlaBla?

I am assuming your user control's class name is 'BlaBla'. You will only
have to add the '<ToolboxBitmap(...)> _' stuff to the existing code of
the user control.
 
Back
Top