Results 1 to 2 of 2

Thread: [RESOLVED] [2005] Clear the text from a ComboBox

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    Resolved [RESOLVED] [2005] Clear the text from a ComboBox

    Hi,

    I am using Visual Basic 2005 Express Edition

    I have in my form ComboBox:
    ComboBox.DropDownStyle = ComboBoxStyle.DropDownList

    I am trying to clear the text from the ComboBox:
    ComboBox.Text = ""

    It's not working

    I don't want to clear all the items:
    ComboBox.Items.Clear()

    Can somebody tell how to clear the text from the ComboBox.

    Thanks in advance

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    Re: [2005] Clear the text from a ComboBox

    Hi,

    I got the answer at:
    http://www.underwar.co.il/forum/foru...038&PN=1&TPN=1

    combobox.selectedindex = -1

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