471,306 Members | 1,207 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

derived controls

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
Dec 8 '05 #1
1 1251
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Alex K." <Al***@discussions.microsoft.com> wrote in message
news:C5**********************************@microsof t.com...
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

Dec 8 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by =?Utf-8?B?Q2hyaXN0aWFuIFdlaW5lcnQ=?= | last post: by
reply views Thread by rosydwin | last post: by

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.