Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing a textbox
Message
 
To
05/11/2003 10:29:59
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00846490
Message ID:
00846510
Views:
25
Hi Km,

You can't use the visual designer to subclass the textbox. You need to create a new class and have it inherit from the textbox class:
public class myTextBox : TextBox
{

}
>How can I subclass a textbox? I created a Windows Control Library project and choose "Add Inherited Control" from the Add New Item menu. However "textbox" is not available. Could any body show me the way?
>
>TIA
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform