[問題] textbox.Text 共用變數

作者: abc95007 (別理我)   2018-08-24 15:29:23
請問
textbox1.Text 與 textbox2.Text
是否能共用一個變數
或是這兩個值指向同一位置?
例如
string temp ="";
textbox1.Text = temp;
textbox2.Text = temp;
temp = "hello world";
textbox1.Text 與 textbox2.Text 也會等於 "hello world;
感謝~
作者: testPtt (測試)   2018-08-24 17:58:00
textbox.databinding.add("Text",obj,"property");

Links booklink

Contact Us: admin [ a t ] ucptt.com