作者abc95007 (别理我)
看板C_Sharp
标题[问题] textbox.Text 共用变数
时间Fri Aug 24 15:29:23 2018
请问
textbox1.Text 与 textbox2.Text
是否能共用一个变数
或是这两个值指向同一位置?
例如
string temp ="";
textbox1.Text = temp;
textbox2.Text = temp;
temp = "hello world";
textbox1.Text 与 textbox2.Text 也会等於 "hello world;
感谢~
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 42.73.60.122
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1535095766.A.ECC.html
1F:→ testPtt: textbox.databinding.add("Text",obj,"property"); 08/24 17:58