2012-07-21 58 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