Re: User Control and Textbox Inheritance
- From: "Bruce Wood" <brucewood@xxxxxxxxxx>
- Date: 28 Aug 2006 16:09:27 -0700
houghtelling@xxxxxxxxx wrote:
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.
.
- References:
- User Control and Textbox Inheritance
- From: houghtelling
- User Control and Textbox Inheritance
- Prev by Date: System.Windows.Forms.Toolbar Image Quality
- Next by Date: Re: 'System.Resources.MissingManifestResourceException'
- Previous by thread: User Control and Textbox Inheritance
- Next by thread: Access treeView.selectednode from another form
- Index(es):
Relevant Pages
|