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 General / August 2006

Tip: Looking for answers? Try searching our database.

User Control and Textbox Inheritance

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
houghtelling@gmail.com - 28 Aug 2006 19:46 GMT
Is it posible to inherit from a textbox and then place that inherited
textbox onto a user control in that same project?

When I try to do this I get the error: "Could not find type
'MyTextBox'. Please make sure that the assembly that contains this type
is referenced. If this type is a part of your development project, make
sure that the project has been successfully built."

Thanks,
Jerod
Bruce Wood - 29 Aug 2006 00:09 GMT
> Is it posible to inherit from a textbox and then place that inherited
> textbox onto a user control in that same project?

Yes, but between the time that you create the inherited text box class
and the time that you try to place it on the user control you have to
have done a successful build of the project. As well, if you ever have
the Designer open on the user control when the project fails to
compile, the Designer may decide to remove the inherited text box from
the user control, because there will be no compiled assembly for it.

> When I try to do this I get the error: "Could not find type
> 'MyTextBox'. Please make sure that the assembly that contains this type
> is referenced. If this type is a part of your development project, make
> sure that the project has been successfully built."

Probably because your project has failed to compile, so the compiled
assembly is gone, and so the Designer no longer knows what MyTextBox is.

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.