Results 1 to 4 of 4

Thread: Change Textbox to Combobox programmitacally.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2010
    Posts
    76

    Change Textbox to Combobox programmitacally.

    is there a way to change the the textbox to combobox pro-grammatically and vice versa.

    Thanks.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    32,972

    Re: Change Textbox to Combobox programmitacally.

    Short answer - not really... slighly longer answer: Why would you want to?

    Their functionality is different.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2010
    Posts
    76

    Re: Change Textbox to Combobox programmitacally.

    @techgnome.Thanks.

    I don't want to use another object with hide and show properties.

  4. #4
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,125

    Re: Change Textbox to Combobox programmitacally.

    Well, then you're in luck. The longer answer is you can always write your own user control to do what you want which will allow you to only have to create one object, yours.
    Of course, the easy route there would probably still to use two controls internally that you switch between, but now you wouldn't use hide and show properties for the two controls at the user level. The hide and show properties would be built into the method you add to programmatically change the textbox to a combobox and vice versa. You would also decide what you want to do with the string(s) in the textbox and comboboxes at the time of change.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width