1
Answer

how to get combobox value in windwoform

Dharmesh sharma

Dharmesh sharma

13y
1.4k
1
hello
 i my window form i have combo box and i bind with sql server

the combobox bind like this

combobox1.datasource=dt;
combobox1.valuemember="id"; 
combobox1.displaymember="name";


now when i select tha name in combobox how i get the id of selected name

plz help me
Answers (1)