all groups > dotnet windows forms > february 2005 >
You're in the

dotnet windows forms

group:

using ToolboxBitmap from inherted control



using ToolboxBitmap from inherted control jean-dot-paul-at-opelwilly-dot-com
2/27/2005 7:56:20 PM
dotnet windows forms: Hello,

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

Greetings

Jean Paul

Re: using ToolboxBitmap from inherted control Joshua Flanagan
2/27/2005 9:23:16 PM
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.


[quoted text, click to view]
Re: using ToolboxBitmap from inherted control Mick Doherty
2/28/2005 10:14:55 AM
<ToolBoxBitmap(GetType(Button))> _
Public Class MyButton
...

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


[quoted text, click to view]

AddThis Social Bookmark Button