Re: ToolBox Bitmap
From: Bob (Bob_at_discussions.microsoft.com)
Date: 07/21/04
- Next message: Remulac: "Re: Object Reference Error"
- Previous message: Chris Dunaway: "Re: Problems with vb.net and xp professional"
- In reply to: Ken Tucker [MVP]: "Re: ToolBox Bitmap"
- Next in thread: Bob: "Re: ToolBox Bitmap"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Jul 2004 07:04:02 -0700
Ok. Did that for both controls(removed the resource file and added both bitmaps (as embedded)), but I'm still getting the default bitmaps. Here's the actual code for one of the controls:
<ToolboxBitmap(GetType(SelectionListBox), "SelectionListBox.bmp")> _
Public Class SelectionListBox
"Ken Tucker [MVP]" wrote:
> Hi,
>
> Instead of placing the bitmaps in a resource file add them to the
> solution. Set there build action to embedded resource.
>
> <ToolBoxBitMap(GetType(CTRL_1),"One.bmp")> _
> Class CTRL_1
> .... code...
> End Class
>
> Ken
> ----------------
>
> "Bob" <Bob@discussions.microsoft.com> wrote in message
> news:1301EB8C-4241-4A4B-B4C6-C5EFB2B718F6@microsoft.com...
> I have two BMP's (One.bmp and two.bmp) that I've placed in a resource file
> (MyControls.resource) using the resource editor. I've got two custom
> controls (CTRL_1 and CTRL_2) and I want the icons to show in the toolbox. I
> tried something like:
>
> <ToolBoxBitMap(GetType(CTRL_1),"one")> _
> Class CTRL_1
> .... code...
> End Class
>
> I also used similar code for the other control, but when the controls are
> added to the toolbox, only the default icons are displayed. How do I get
> the desired results?
>
>
>
- Next message: Remulac: "Re: Object Reference Error"
- Previous message: Chris Dunaway: "Re: Problems with vb.net and xp professional"
- In reply to: Ken Tucker [MVP]: "Re: ToolBox Bitmap"
- Next in thread: Bob: "Re: ToolBox Bitmap"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|