Skip to content

Problem in Combobox

try abc

try abc

Asked Jan 22, 2008, 7:47 PM EST1 answer
Share
LinkedInX
If we split some text from selected item of combobox and required to set that splitted text as combobox.Text .... How can we solve that problem ?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    hi

     i think solving this problem  by writing code in this  event

    • MouseUp combobox

      Example

    1.  create windows application 
    2. drag ombobox called combobox1 ,Label called Label1
    3. select event MouseUp 
    4. write this code
    Code
    private void comboBox1_MouseUp(object sender, MouseEventArgs e)
    {
    comboBox1.Text = comboBox1.SelectedText;
    }

    5- build programme and try it by  select value from combobox ,slect part from text ,relase mouse click , u will see selected text on label1

       thanks

    0