นำมาฝาก : สร้าง datatable แล้วแสดงข้อมูลใน combobox
dim dt as new datatable dt.columns.add("Names") dt.Columns.add("Keys") dt.loaddatarow(new object() {"Martin", "1"},true) dt.loaddatarow(new object() {"Cor","2"},true) 'This can all in probably hundred other ways, this is the way I do it.
Combobox1.datasource = dt Combobox1.displaymember = "Names" Combobox1.Valuemember = "Keys"
|