CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 1999
    Location
    Missouri
    Posts
    2

    Clearing a Read-Only Combo Box

    I have created a form that uses various SQL calls (using ADODB) to populate combo boxes depending on users input. Once the form is completed, all elements are cleared for the inputing of new data. When I try to clear the Combo Boxes, I get a Run-Time 383 "Text is a read-only property." Is there any other way to return to a blank Combo?
    Tia

    Cloning is the sincerest form of flattery

  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Clearing a Read-Only Combo Box

    If the Combo-box is linked to a field in a table of the database using the datasource property, try to unset the datasource property, and then use the refresh method.

    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: Clearing a Read-Only Combo Box

    to clear a combobox or listbox use the Clear method.


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

Featured