很很很菜的问题
如何获取文本框内的值,进行后台运算后在文本框中显示?着急哇 --------------------编程问答-------------------- textbox.text=function(textbox.text);function是后台运算方法 --------------------编程问答-------------------- winform?
textbox1.text = 计算(textbox1.text);
--------------------编程问答--------------------
我也是这样想的. --------------------编程问答-------------------- string str="";
str=textbox1.text.ToString(); --------------------编程问答-------------------- string s = textBox1.Text.Trim();
// Convert.ToXXX()
textBox1.Text = ... --------------------编程问答-------------------- 后台获取
string a = textbox.Text;
后台赋值
string a="";
textbox.Text=a; --------------------编程问答-------------------- 多谢各位! --------------------编程问答--------------------
来个C嘎嘎版本,嘿嘿:
CString str;
GetDlgItem(IDC_COPY)->GetWindowText(str);
str=function是后台运算方法;
GetDlgItem(IDC_STICK)->SetWindowText(str); --------------------编程问答--------------------
楼上的都很好 --------------------编程问答--------------------
+1 --------------------编程问答-------------------- string username=textbox.text.toString(); --------------------编程问答--------------------
然后进行运算就好了。 --------------------编程问答-------------------- 文本框.text取出来 随便给个字符串 就可以用了 --------------------编程问答-------------------- 应该蛮简单的。。。。。。。。 --------------------编程问答-------------------- 又一个不结贴的 --------------------编程问答-------------------- 获取值的方法:string str=textBox1.Text.Trim();
赋值相同:textBox1.Text = "字符串";
补充:.NET技术 , C#