button subclass add visually

G

Guest

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
 
C

Chris, Master of All Things Insignificant

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
 
G

Guest

ha! so obvious once you know, yet so convoluted. thank you very much.
works like a charm :)

garritt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top