Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / March 2005

Tip: Looking for answers? Try searching our database.

How to add direct inherit control(not UserControl) to toolbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
maxixi - 30 Mar 2005 21:21 GMT
Hi,

My controls inherits from System.Windows.Forms.ComboBox,
After i build the project, i cannot find it on
the toolbox. I find the toolbox automatically adds
usercontrols. Why not inherits controls?

Maxixi
Herfried K. Wagner [MVP] - 30 Mar 2005 21:30 GMT
"maxixi" <greenxiar@hotmail.com> schrieb:
> My controls inherits from System.Windows.Forms.ComboBox,
> After i build the project, i cannot find it on
> the toolbox. I find the toolbox automatically adds
> usercontrols. Why not inherits controls?

Add a usercontrol, compile the project, adapt the 'Inherits...' line to make
the control inherit from 'ComboBox' and remove unnecessary parts of the
control's implementation.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

maxixi - 30 Mar 2005 23:12 GMT
But if i reset the toolbox and rebuild the project, all
the direct-derived control are missing.

This method cannot be "Reset" ?

> "maxixi" <greenxiar@hotmail.com> schrieb:
> > My controls inherits from System.Windows.Forms.ComboBox,
[quoted text clipped - 5 lines]
> the control inherit from 'ComboBox' and remove unnecessary parts of the
> control's implementation.
Frank Hileman - 31 Mar 2005 15:21 GMT
Those kind have to be added manually to the Toolbox, by browsing to a dll.
Best to keep them in a separate class library project.

Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor

> But if i reset the toolbox and rebuild the project, all
> the direct-derived control are missing.
[quoted text clipped - 11 lines]
>> the control inherit from 'ComboBox' and remove unnecessary parts of the
>> control's implementation.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.