473,382 Members | 1,355 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,382 software developers and data experts.

button subclass add visually

good morning :) im trying to add a subclassed button to the toolbox in 2003
so that i can add it visually to a form. unfortunately i cannot seem to find
the trick to adding something that is not compiled into a DLL into the
toolbox. my class is based on System.Windows.Forms.Button. up until now i
have been adding regular buttons and then changing their types to my
subclass. i would really like to have the visual drag and drop though with
my custom button. so my question is this. is there a way to add a
subclassed button located in a .CS file in the current project into the
toolbox without having it in its own DLL?

thank you.

garritt
Jul 21 '05 #1
2 1271
I am doing the same thing with my MaskedTextBox class. Compile your exe
once, then add a reference to the project's exe. That will give you access
to your button in the toolbox.

Chris

"garrittg" <ga******@nospam.nospam> wrote in message
news:22**********************************@microsof t.com...
good morning :) im trying to add a subclassed button to the toolbox in
2003
so that i can add it visually to a form. unfortunately i cannot seem to
find
the trick to adding something that is not compiled into a DLL into the
toolbox. my class is based on System.Windows.Forms.Button. up until now
i
have been adding regular buttons and then changing their types to my
subclass. i would really like to have the visual drag and drop though
with
my custom button. so my question is this. is there a way to add a
subclassed button located in a .CS file in the current project into the
toolbox without having it in its own DLL?

thank you.

garritt

Jul 21 '05 #2
ha! so obvious once you know, yet so convoluted. thank you very much.
works like a charm :)

garritt

"Chris, Master of All Things Insignifican" wrote:
I am doing the same thing with my MaskedTextBox class. Compile your exe
once, then add a reference to the project's exe. That will give you access
to your button in the toolbox.

Chris

"garrittg" <ga******@nospam.nospam> wrote in message
news:22**********************************@microsof t.com...
good morning :) im trying to add a subclassed button to the toolbox in
2003
so that i can add it visually to a form. unfortunately i cannot seem to
find
the trick to adding something that is not compiled into a DLL into the
toolbox. my class is based on System.Windows.Forms.Button. up until now
i
have been adding regular buttons and then changing their types to my
subclass. i would really like to have the visual drag and drop though
with
my custom button. so my question is this. is there a way to add a
subclassed button located in a .CS file in the current project into the
toolbox without having it in its own DLL?

thank you.

garritt


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul A. Wilson | last post by:
I'm new to Tkinter programming and am having trouble creating a reusable button bar... I want to be able to feed my class a dictionary of button names and function names, which the class will make....
6
by: Marek Mänd | last post by:
Can the <button><img></button> mutated via CSS so, that the inner image of <BUTTON> would entirely visually become the button itsself - I mean without the outer elements borders and so... ...
2
by: Eric Sabine | last post by:
I'm running FX Cop on my assembly and on a form, tons of my labels and buttons are being flagged with this error. I don't really get the error and what I am supposed to do to resolve the error. I...
2
by: garrittg | last post by:
good morning :) im trying to add a subclassed button to the toolbox in 2003 so that i can add it visually to a form. unfortunately i cannot seem to find the trick to adding something that is not...
8
by: Lou Pecora | last post by:
I've been scanning Python in a Nutshell, but this seems to be either undoable or so subtle that I don't know how to do it. I want to subclass a base class that is returned from a Standard Library...
4
by: Nathan Baker | last post by:
Hey, I am trying to subclass a button to create a control similar to the Firefox/IE dropdown button. My first step is to draw the 'down arrow' on the button. I overrided the OnPaint method...
12
by: Thammarat charoenchai. | last post by:
Hi, I'm try to learn vb.net. in delphi have .click method for click button by coding. Can I do that with vb.net Thank you very much.
2
by: rookiejavadude | last post by:
I'm have most of my java script done but can not figure out how to add a few buttons. I need to add a delete and add buttong to my existing java program. Not sure were to add it on how. Can anyone...
5
by: gregarican | last post by:
There is a C# CTI app I'm working on using Visual Studio 2005 at revision level 8.0.50727-7600. I need a couple of Windows Form Button controls to emulate line buttons on a telephone. So I went to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.