程式中有四個TextBox-text1,text2,text3
如何使用變數(a)來指定要呼叫哪一個TextBox(不使用物件陣列)
a=text1
a.text="hello!" 顯示結果就是text1.text="hello!"
a=text2
a.text="hi!" 顯示結果就是text1.text="hi!"
a=text3
a.text="GoodBye!" 顯示結果就是text1.text="GoodBye!"
如何將變數a代入???
請各位高手指教!
或是有其它解泱方法也請告知 謝謝