



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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-2030中国双轴土工格栅行业市场发展趋势与前景展望战略研究报告
- 2025-2030中国分散式风电行业项目运行分析及未来前景展望报告
- 2025-2030中国公路施工市场应用领域研究与投资规模预测报告
- 2025-2030中国光储充一体化市场运行现状与发展趋势预测分析报告
- 2025-2030中国低碳经济行业投融资动态与发展潜力评估报告
- 2025-2030中国代步平衡车行业发展前景及趋势预测分析报告
- 行政机关考试试题及答案
- 2025年氢氧化镍项目可行性分析报告
- 体育考试考试试题及答案
- 2024年中国玛瑙行业市场调查报告
- 《大数据分析技术》课程标准
- 最简单封阳台安全免责协议书
- 2024年危险化学品经营单位安全管理人员考试练习题(附答案)
- (正式版)JBT 3300-2024 平衡重式叉车 整机试验方法
- 《无人机航迹规划》课程标准(高职)
- 养老院健康档案模板
- 夏季高温期间建筑施工安全注意事项
- 2024年中小学教师职称审定答辩题目
- 钢丝绳吊装时最大允许吊装重物对应表
- 《金融反欺诈与大数据风控研究报告(2023)》
- 传播学概论课件
评论
0/150
提交评论