-
Extending a textbox's properties
My question is it possible to extend the properties of a textbox, combobox,
etc... to store values at design time ? I want to create a property that
stores the database name, but I want to have appear that it is anormal property
of a textbox like tag. I would like to accomplish this without creating and
ActiveX Control. I just want to extend the properties of a VB Intrinsic control.
Any ideas how to do this?
-
Re: Extending a textbox's properties
Dave,
You could create a class call TextBoxExtender that grabbed then events of
the textbox using withevents keyword. But you could not store design time
values.
Another method would be to create a textbox extender usercontrol, just like
the class above, but then you could store design time values.
But by far the best way would be to create your own usercontrol that is a
wrapper for the textbox.
--
Michael Culley
www.vbdotcom.com
"Dave" <januchowski.david@healthnow.org> wrote in message
news:3a899712$1@news.devx.com...
>
> My question is it possible to extend the properties of a textbox,
combobox,
> etc... to store values at design time ? I want to create a property that
> stores the database name, but I want to have appear that it is anormal
property
> of a textbox like tag. I would like to accomplish this without creating
and
> ActiveX Control. I just want to extend the properties of a VB Intrinsic
control.
> Any ideas how to do this?
-
Re: Extending a textbox's properties
"Dave" <januchowski.david@healthnow.org> wrote:
>
>My question is it possible to extend the properties of a textbox, combobox,
>etc... to store values at design time ? I want to create a property that
>stores the database name, but I want to have appear that it is anormal property
>of a textbox like tag. I would like to accomplish this without creating
and
>ActiveX Control. I just want to extend the properties of a VB Intrinsic
control.
>Any ideas how to do this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks