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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -