《windows窗体程序开发》由会员分享,可在线阅读,更多相关《windows窗体程序开发(22页珍藏版)》请在金锄头文库上搜索。
1、7至Windows窗通过本章的学习,使读者:。了解Windows事件驱动的程序结构*了解宿体程序与控制台程序的联系和区别。掌揭Button抱件、TextBox控件和Label控件的使用方法“熠悉窗体和控件的属性设置,以及响应特定事件法的添加.图7-1是MyCaleulator程序运行统果。其有加、浑、霁除四则运算的计算功能。EREHa一目1e巾声FEnf山eletyuESO|述诊网口祖5回驱%M国国命命Mycalculc开发步骤:(1)肢动VisualStudio2005,创建一个新的项目。(2)利用工具箱中的控件,设计用户界面。(3)设置窗体和控件的属性。(4添加事件过程,编写代码实现程序的
2、功能。(5)编译、运行并调试程序。(6)局部修改、功能完善。rnomomiE8n1558er口nn二Ieta1Ea1丨回ae史团ataaE周ssscntJterasiagagiDcoan:anaatucn5暑Amsxaoann】【-【-mcnc.懈mc盖I腹口咖c|吴区Zant,xugoe,I,aa【E|EcorE团iL&E匹LEwArissaznEStipetcgE盈麟氰螭魔l喜襄|2oruuimeuEnar“一8semergir-|z咤RRCenE2SEIERNRGa08山W8的8堕日卵8:42剧rnpaciuor01园w吴丞e丶西车国In国eusingSystem;。usingSyste
3、m.Collections.Generic;usingSystem.ComponentModel;usingSystemData;usingSystemDrawing;usingSystemText;usingSystemindowsForms;namespaceMycPlc曝1鬣囊e1|f44玟publicpartialclassForml:ForalpublicForml()InitializeComponent();31日HQ仁1aeunessTn探仁粉居性尿性借日ndorNare,TextForal,我的求探鬟Textpoxanetextboxl第-振作数的输入枷TextorNaneTextloxl第一振作数的输入枚TextboxNaseEnabledTextoxfalse&ButtonNaneTextbattonron,计够pattonHtpghqgl_exi一道Radiottonaseextma一蒯加C3RadioattonNaneTextradio_sub京藿三【二)1RadioationWaneTextradioau,乘X)BadioationWaneTextradiodiw除673、_bgl、唰愚穗戏一lebell被加数Labe2NWaneTextlabex矗E二TextLabedNWaneTextLabe5NaaeText