求推荐一些vs2010编写窗体应用程序的教程。

还有像我已经在窗口中插入了一个按钮,要让他点击以后退出程序,代码是什么?写在哪。这个按钮查看代码是:voidInitializeComponent(void){this-... 还有像我已经在窗口中插入了一个按钮,要让他点击以后退出程序,代码是什么?写在哪。
这个按钮查看代码是:
void InitializeComponent(void)
{
this->button1 = (gcnew System::Windows::Forms::Button());
// button1
//
this->button1->Location = System::Drawing::Point(29, 230);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(75, 23);
this->button1->TabIndex = 16;
this->button1->Text = L"1";
this->button1->UseVisualStyleBackColor = true;
..............
展开
 我来答
fauxvis
2012-02-07 · TA获得超过263个赞
知道小有建树答主
回答量:368
采纳率:0%
帮助的人:399万
展开全部
双击这个按钮,然后
private void button1_Click(object sender, EventArgs e)
{
this.Close(); //就写这一行就行了
}
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式