Extending a textbox's properties


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Extending a textbox's properties

  1. #1
    Dave Guest

    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?

  2. #2
    Michael Culley Guest

    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?




  3. #3
    naman kiani Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center