[英]Show(); Function Not Working For Windows Forms C++
我正在嘗試讓我的登錄表單打開另一個 windows 表單,但是Show
和ShowDialog
不起作用,我收到一條錯誤消息,提示“'Show' 不是 'System::Windows::Z645024253331912983ACAMe88A8 的成員。
不知道為什么會這樣,谷歌在這里沒有顯示任何結果,並且真的可以使用一些幫助。
private:
System::Void loginButton_Click_1(System::Object^ sender, System::EventArgs^ e)
{
//*Insert SQL Login validation*
//Once the login has been validated, lets encrypt the client's data and continue to splash page
this->Hide();
MainMenu^ mm = gcnew MainMenu();
mm->Show();
//mm->ShowDialog();
}
我修復了它,意識到我的錯誤,它需要是 Form^ mm = gcnew MainMenu();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.