C ++ Windows表单App,尝试将我的按钮链接到网页

时间:2012-04-08 20:08:21

标签: c++ url button

所以我在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();
}

0 个答案:

没有答案