c# - set the value in textbox appears automatically -
i'm working on project now, make easier work decided make related textbox, question how set value of textbox appears automatically?
inthis case, rnol = pnol + qnol + nnol
want rnol value printed automatically in tbrnol/textbox rnol when click button..
pnol = double.parse(tbpnol.text); qnol = double.parse(tbqnol.text); nnol = double.parse(tbnnol.text); rnol = pnol + qnol + nnol(tbrnol.text); //i've try wrong syntax
you modify last line to:
rnol = pnol + qnol + nnol;
and add one:
tbrnol.text = rnol.tostring();