c# - Assign TextBox Text into variables -
i trying send email windows forms application.
i have created form getting mail_id , password.
textbox1
getting mail_id.textbox2
getting password.
the user enters same in textboxes.
how can assign typed credentials in 2 different variables, can use variables further in program?
e.g.:text in textbox1= variable;text in textbox2= variable;
it's simply:
string firstval = textbox1.text; string secondval = textbox2.text;
but basic! take book , learn basics, please.
Comments
Post a Comment