有人知道如何重命名 onLoad 表单吗? 我试过:
private: System::Void General_Load(System::Object^ sender, System::EventArgs^ e) {
String^ test = "test";
String^ x= "General: " + test;
this->Name = x;
}
但它不起作用。
最佳答案
我应该使用这个->Text = x;不是这个->Name = x;
关于c++ - 在加载 MSVisual C++ 时重命名窗体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11593676/