I have two combobox .. and i have some items in both combobox
now i need to check the item in both combobox if same item
is Present in both combobox i need to display that item in
message box

Answer Posted / guest

Compare the values in both the comboboxes :


if(comboBox1.Text == comboBox2.Text)
{
MessageBox.Show(comboBox1.Text);

}

Is This Answer Correct ?    7 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which method grants a lock on a resource?

574


Suppose I am implementing one windows form. I am inserting some values into ms access. In that table 5 columns there. But I want to insert three columns only. When I am clicking another button then other two values also insert into that table?

541


What is the use of play() playlooping() functions?

624


Explain how to get records from a database?

649


What is form design?

555






Which of the following position is the default docking position of the statusstrip control on the form?

580


How can you pause a timer control?

635


Can you create a tabletype of recordset in Jet - connected ODBC dbengine?

1877


How many types of dialog boxes windows provides?

587


What are the advantages of form?

521


To which namespace does the control class belong?

531


How many navigational features are provided by visual studio.net ide?

616


What is the full form of gac?

644


What are the properties of datacontrol?

2033


Explain how to find the current record position in data control?

498