473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 1940
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: chambersdon | last post by:
I have created a Web Custom Control that inherits from WebControls.ListBox but can't get it to retain the selectedIndex after a postback. As a test I created a very simple version of the control...
2
by: jean-dot-paul-at-opelwilly-dot-com | last post by:
Hello, Can I use the ToolboxBitmap from the inherted Control to show up in my toolbox and if so how? Greetings Jean Paul
1
by: Luis Arvayo | last post by:
Hi All, I cannot made visible the toolbox bitmap for my controls. I did the following: - Namespace : foo - Assembly: foo.dll - Toolbox bitmap stored in subdirectory Resources. Resource...
0
by: ABC | last post by:
Why the properties of web user controls which inherted from my custom base UI controls MISSED? How should I to set enable?
0
by: ABC | last post by:
Why the properties of web user controls which inherted from my custom base UI controls MISSED? How should I to set enable?
0
by: nicolas.hilaire | last post by:
Hi all, i'm creating an User Control (that is working). I would like to see my own image for this control, in the toolbox. Then, i'm using ToolboxBitmap namespace testUserControl { ...
10
by: MyndPhlyp | last post by:
(Second posting attempt) I have been through tons of old postings, several web sites, books, and even tried consulting a psychic but nothing is yielding the majik answer. I'm using VB '05...
0
by: John | last post by:
I've created a component in VS.NET 2003 and I'm having a hard time getting my bitmap to show up in the Designer Toolbox in Visual Studio. I have designed an .ico file and have included the...
2
by: Nathan Sokalski | last post by:
I am attempting to create icons for controls I have created using VB.NET by using the System.Drawing.ToolboxBitmap attribute. I have managed to do this in C# by specifying the path to the *.ico...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.