Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Add custom properties to existing Text control ?

0 views
Skip to first unread message

paoming

unread,
May 1, 2002, 10:09:59 PM5/1/02
to
Help !

How to add custom property/method into existing control,
which shown on Member List dropdown ?

Example, add new property "CountOfCharsXYZ" (Int32) to
existing TextBox class.

I believe VB.NET or C# can do it, but don't know how.

Thxs

Dat Bui

unread,
May 2, 2002, 12:28:31 PM5/2/02
to
I think you would haev to inherit the control into your class. Then in your class you can add additional properties and methods.

Hope this helps,
Dat Bui
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights. © Microsoft Corporation. All rights reserved.

--------------------
>Content-Class: urn:content-classes:message
>From: "paoming" <pao...@datalines.com.sg>
>Sender: "paoming" <pao...@datalines.com.sg>
>Subject: Add custom properties to existing Text control ?
>Date: Wed, 1 May 2002 19:09:59 -0700
>Lines: 11
>Message-ID: <834601c1f17e$761b2bb0$a5e62ecf@tkmsftngxa07>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>Thread-Index: AcHxfnYblSnIA/s3Qz6i47E00bk2qQ==
>Newsgroups: microsoft.public.dotnet.languages.csharp
>Path: cpmsftngxa07
>Xref: cpmsftngxa07 microsoft.public.dotnet.languages.csharp:58216
>NNTP-Posting-Host: TKMSFTNGXA07 10.201.232.166
>X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

paoming

unread,
May 2, 2002, 10:39:16 PM5/2/02
to
It works, thanks !
Now I can reduce development time of my team
significantly. Much simpler than VB6, no inheritance !
0 new messages