[英]set the value in textbox appears automatically
I'm working on a project now, to make it easier to work I decided to make related textbox, the question is how to set the value of textbox so that it will be appears automatically? 我现在正在研究一个项目,为了使工作更轻松,我决定制作相关的文本框,问题是如何设置文本框的值,使其自动显示?
Inthis case, Rnol = Pnol + Qnol + Nnol 在这种情况下,Rnol = Pnol + Qnol + Nnol
I want Rnol value to be printed automatically in tbRnol/textbox Rnol when I click Button.. 当我单击“按钮”时,我希望Rnol值自动在tbRnol /文本框Rnol中打印。
Pnol = double.Parse(tbPnol.Text);
Qnol = double.Parse(tbQnol.Text);
Nnol = double.Parse(tbNnol.Text);
Rnol = Pnol + Qnol + Nnol(tbRnol.Text); //I've try this but it clearly wrong syntax
You could modify your last line to: 您可以将最后一行修改为:
Rnol = Pnol + Qnol + Nnol;
And add this one: 并添加以下内容:
tbRnol.Text = Rnol.ToString();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.