derived controls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone

I have a class MyListBox derived from standard ListBox. To use it on a form
I have to add it manually in the code because it is not shown in the toolbox.
So usually I would put a ListBox on the form and then in code replace all
occurrences of ListBox by MyListBox. It works fine, but I am wondering is
there any better way to do this, like to include my class to toolbox perhaps?

Thak you
 
Alex,

If you are using VS .NET 2005, and the control is in a project that you
have loaded, it should automatically be in the toolbox.

If you are using VS .NET 2003, then you should be able to right click on
the toolbox and select the item to add new controls. You can then select
your control from the list, and have it show in the toolbox.

Hope this helps.
 

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

Back
Top