2012-07-21 62 views
0

有人有一個想法如何重命名形式onLoad? 我試過了:加載重命名錶格MSVisual C++

private: System::Void General_Load(System::Object^ sender, System::EventArgs^ e) { 
     String^ test = "test"; 
     String^ x= "General: " + test; 
     this->Name = x; 
     } 

但它不起作用。

+0

它是如何工作的?怎麼了? – Goz 2012-07-21 16:02:42

+0

什麼都沒有發生。 – Luke 2012-07-21 16:04:14

+0

什麼?名稱不變?你怎麼知道「什麼都沒有發生」? – Goz 2012-07-21 16:04:51

回答

1

我應該使用this-> Text = x; not this-> Name = x;

+0

我真的認爲他試圖改變名字而不是文字。 – Goz 2012-07-22 06:15:26