用VC.NET制作WinForm应用程序(3)

分类: VC.NET   出处:iocblog整理  更新时间:2008-10-31   添加到收藏  

button1->Location = Point(23, 96);

button1->Size=System::Drawing::Size(100,60);

button1->Name = "button1";

button1->TabIndex = 0;

button1->Text = "Start my first C++ WinForm Application";

button1->Click += new System::EventHandler(this,

&Form1::button1_Click);

//

// label1

//

label1->Location = Point(150, 84);

label1->Name = "label1";

label1->TabIndex = 1;

//

// Form1

//

AutoScaleBaseSize = System::Drawing::Size(5, 13);

ClientSize = System::Drawing::Size(292, 273);

Controls->Add(label1);

Controls->Add(button1);

Name = "Form1";

Text = "Form1";

ResumeLayout(false);

}

private:

void button1_Click(Object* sender, System::EventArgs* e)

{

label1->Text = "Hello World!";

}

};

}

// This is the entry point for this application

int __stdcall WinMain()

{

Application::Run(new myspace::Form1());

return 0;

}

上一页 [1] [2] [3]


Tag: WinForm



文章整理:iocblog
版权申明:本站文章均来自网络,如有侵权,请联系我们,我们收到后立即删除,谢谢!
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有。