abdelwaheb ammar

abdelwaheb ammar

  • 1.3k
  • 457
  • 124.7k

insert all the textbox of windowform in list

Oct 2 2015 11:56 AM
hello my question is about how can i add all the values of textbox in a list.
i write this code but it show me an error
 
List<frmgerant> listgerant = new List<frmgerant>();
listgerant.Add(txt_nom_gerant.Text.ToString());
listgerant.Add(txt_prenom_gerant.Text.ToString());
 
 
 
how can i solve that? 

Answers (4)