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 / ASP.NET / Building Controls / July 2006

Tip: Looking for answers? Try searching our database.

Inheriting a control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ant - 24 Jul 2006 05:00 GMT
Hi,
Firstly, I'm not using ASP , I'm using winForms but I can't seem to find a
winforms building controls thread. If anybody knows of such a thread in this
forum I'd be most grateful.

The problem I'm having is I'm creating a control using a class library. This
class is inheriting a Checkbox. I want to create a simple Toggle Button
control.

After setting a reference to the windows forms dll, I inherit the checkbox
class in the normal fashion:

public class MyToggleButton : CheckBox{//code here}

I build ok.

When I add a reference to this assembly, it recognises the reference but no
control appears on my MyUserControls tab. Why is this so?

I have created controls using control libraries with no problems. Why can't
I inherit from a standard control & see it on MyUserControls?

Thanks for any clues in advance.
Ant
Ant - 24 Jul 2006 05:10 GMT
Hi,

I worked out how to add it, by using the Add/Remove items on the tool box.
But this leaves me with a question.

Why do I need to add a referene to a control library from the project menu

but I need to use Add/Remove to add a class library control? what is the
difference?

Thanks for any thoughts
Ant



> Hi,
> Firstly, I'm not using ASP , I'm using winForms but I can't seem to find a
[quoted text clipped - 20 lines]
> Thanks for any clues in advance.
> Ant

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



©2009 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.