469,358 Members | 1,611 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,358 developers. It's quick & easy.

using ToolboxBitmap from inherted control

Hello,

Can I use the ToolboxBitmap from the inherted Control to show up in my
toolbox and if so how?

Greetings

Jean Paul
Jul 21 '05 #1
2 1745
Your best bet is probably to extract the icon from the inherited
control, save it as an image, alter the image a bit, and then use that
image in your ToolboxBitmap attribute. It probably isn't good form to
create your control with the exact same image as the inherited control -
you end up with 2 different controls with the same icon.
jean-dot-paul-at-opelwilly-dot-com wrote:
Hello,

Can I use the ToolboxBitmap from the inherted Control to show up in my
toolbox and if so how?

Greetings

Jean Paul

Jul 21 '05 #2
<ToolBoxBitmap(GetType(Button))> _
Public Class MyButton
...

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Joshua Flanagan" <jo**@msnews.com> wrote in message
news:ez**************@TK2MSFTNGP15.phx.gbl...
Your best bet is probably to extract the icon from the inherited control,
save it as an image, alter the image a bit, and then use that image in
your ToolboxBitmap attribute. It probably isn't good form to create your
control with the exact same image as the inherited control - you end up
with 2 different controls with the same icon.
jean-dot-paul-at-opelwilly-dot-com wrote:
Hello,

Can I use the ToolboxBitmap from the inherted Control to show up in my
toolbox and if so how?

Greetings

Jean Paul

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by jean-dot-paul-at-opelwilly-dot-com | last post: by
1 post views Thread by Luis Arvayo | last post: by
10 posts views Thread by MyndPhlyp | last post: by
reply views Thread by John | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.