Results 1 to 5 of 5

Thread: Combo Box Dilemma

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 1999
    Location
    Malaysia
    Posts
    7

    Post

    How do i modify the style 2 combobox text in runtime.

    i just want to clear it of by using combo1.text = ""
    but an read only error occur... anyway aound this?

    this is a style 2 combobox.. used bcos i don't want the user to type into it

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    Could you add a blank item at the end and just select it as required?

    ------------------
    Mark Sreeves
    Analyst Programmer

    Mark.Sreeves@Softlab.co.uk
    A BMW Group Company

  3. #3
    Member
    Join Date
    Jan 1999
    Location
    Garden Grove, CA, Orange
    Posts
    55

    Post

    To empty the dropdown list combo box , do like this
    ComboBox.ListIndex = -1.

    If u want to add new set of items, clear combo box and use the AddItem.

    HTH
    Joon

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,175

    Post

    You can clear the contents of any style combobox with MyComboBox.Clear.

    ------------------
    Marty

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 1999
    Location
    Malaysia
    Posts
    7

    Post

    Thanks a whole lot... i didn't know -1 value existed at all.. :P haha



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