That example does not specify a DisplayMember and a ValueMember, it just
fills the list with Strings:
----------------------------
foreach (DataRow record in subDeptTable.Rows)
{
cboSubDept.ComboBox.Items.Add(
record["SubDepartmentName"].ToString());
}
----------------------------
"Net Dev" <ne********@yahoo.com.au> wrote in message
news:df**********@nnrp.waia.asn.au...
this link might helps you
http://www.devx.com/dotnet/Article/22001/0/page/3
Net
"Chris" <cc*********@hotmail.com> wrote in message
news:uy**************@TK2MSFTNGP15.phx.gbl... Umm I am sorry if this is not the proper code.. I see not that your
stating TOOLStrip. If you mean the Toolbar, this code is incorrect below.
I do not know hot to intergrate in to VS, I have never needed to.
"Chris" <cc*********@hotmail.com> wrote in message
news:e4*************@TK2MSFTNGP11.phx.gbl... vb
dim li as new listitem
li.text = ""
li.value = ""
item.add(li)
Working on C#
Think it is
listitem li = new listitem;
li.text="";
li.value="";
item.add[li];
"Manuel" <No****@NoMailLand.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
How can I add an item to a ToolStripComboBox and specify a
DisplayMember and a ValueMember?