2016-07-19 22 views

回答

5

您可以使用Tag property

myButton.Tag = "Foo"; 

// ...後來

string tagInfo = (string)myButton.Tag; 
+0

任何'Control' imo最方便的「隨時隨地」財產。 – Adam

+0

不知道它存在。謝謝。 – rbhat

相關問題