全文预览已结束
付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
C程序设计实验报告实验名称:实验五 Windows应用程序开发实验日期:班 级:学 号:姓 名: 一、实验目的1掌握建立Windows应用程序的步骤和方法;2掌握WindowsForms控件的使用;3掌握常用控件的使用方法。二、实验内容1P330【实验6-2】。2P337【实验6-3】。三、实验过程【实验6-2】using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication2public partial class Form1 : Form public Form1() InitializeComponent(); private void Form1_Load(object sender, EventArgs e) private void checkBox1_CheckedChanged(object sender, EventArgs e) if (this.checkBox1.Checked = true) this.textBox1.Text = textBox1.Text + checkBox1.Text; private void checkBox2_CheckedChanged(object sender, EventArgs e) if (this.checkBox2.Checked = true) this.textBox1.Text = textBox1.Text + checkBox2.Text; private void radioButton1_CheckedChanged(object sender, EventArgs e) if (this.radioButton1.Checked = true) this.BackColor = Color.Red; private void radioButton2_CheckedChanged(object sender, EventArgs e) if (this.radioButton2.Checked = true) this.BackColor = Color.Green; private void radioButton3_CheckedChanged(object sender, EventArgs e) if (this.radioButton3.Checked = true) this.BackColor = Color.Blue; private void checkBox3_CheckedChanged(object sender, EventArgs e) if (this.checkBox3.Checked = true) this.textBox1.Text = textBox1.Text + checkBox3.Text; private void checkBox4_CheckedChanged(object sender, EventArgs e) if (this.checkBox4.Checked = true) this.textBox1.Text = textBox1.Text + checkBox4.Text; private void checkBox6_CheckedChanged(object sender, EventArgs e) if (this.checkBox6.Checked = true) this.textBox1.Text = textBox1.Text + checkBox6.Text; private void checkBox5_CheckedChanged(object sender, EventArgs e) if (this.checkBox5.Checked = true) this.textBox1.Text = textBox1.Text + checkBox5.Text; private void textBox1_TextChanged(object sender, EventArgs e) 【实验6-3】using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication3 public partial class Form1 : Form public Form1() InitializeComponent(); private void label1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e) listBox1.Items.Add(书名: + textBox2.Text + ,出版社: + comboBox1.Text); textBox2.Text = ; private void button2_Click(object sender, EventArgs e) if (listBox1.SelectedIndex != -1) lis
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025-2026年湖南省高二数学概率统计模拟试卷
- 2025-2026年四川省人教版五年级语文上册第9单元写作练习题
- 2025-2026年广东省人教版小学三年级数学下册第12单元同步练习题
- 2025-2026年高中物理人教版选修3-2振动与波模拟试卷
- 2025-2026年江苏省苏教版初中物理原子结构与性质测试题
- 2026年辽宁省人教版初中物理下册光学专项测试卷
- 2025-2026年浙江省人教版九年级数学上册第10章综合测试卷
- 2025-2026年陕西省部编版初中化学方程式书写专项训练试卷
- 2025-2026年黑龙江省部编版小学语文四年级上册第7单元同步练习题
- 2025-2026年云南省部编版初中数学代数运算专项训练题库
- 2025年下半年教师资格考试高级中学美术学科知识与教学能力测试试题及答案解析
- 教师十项准则学习心得体会
- 创伤中心新增制度
- 2026年组织行为学期末试题及答案
- 泸州市兴泸水务(集团)股份有限公司 2026年第二次公开招聘笔试备考题库及答案详解
- 苏教版小学二年级科学上全册课程教案设计(凤凰教育)
- 光伏电站运维操作手册
- 【二年级】【秋季上】开学家长会:承上启下的二年级【课件】
- (2026秋新版)北师大版四年级数学上册全册教案
- 2026秋新版小学青岛版(五四制)科学五年级上册教学设计(附目录)
- 2026年河北省中考英语试卷真题及答案详解(精校打印版)
评论
0/150
提交评论