c# - How to get the value from listbox? -
i writing c# windows form application program. have code part like:
listbox1.items.add(combobox1.selecteditem + "\t" + "\t" + textbox5.text + "\t" + textbox4.text + "\t" + textbox6.text + "\n");
here want take value of textbox6.text
, want assign double variable.
how can that?
just use tryparse method
float val = 0; float.tryparse(textbox6.text, out val);
Comments
Post a Comment