472,779 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,779 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 1899
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: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.