0

所以我在我的 InitializeComponent 函数中设置了所有按钮。我将这段代码放入以使按钮关闭应用程序,但我希望它将用户重定向到网页。对于习惯于制作应用程序的人来说可能很简单......我希望。

初始化按钮的代码

        this->button1->Location = System::Drawing::Point(128, 82);
        this->button1->Name = L"button1";
        this->button1->Size = System::Drawing::Size(75, 23);
        this->button1->TabIndex = 2;
        this->button1->Text = L"What\?";
        this->button1->UseVisualStyleBackColor = true;
        this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click_2);

将其设置为关闭的代码,但我想要一个重定向

#pragma endregion
private: System::Void button1_Click_2(System::Object^  sender, 
                                      System::EventArgs^ e) {
    Close();
}
4

0 回答 0