



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年病案信息技术(医学高级)考试近5年真题集锦(频考类试题)带答案
- 医院培训课件:《输液泵》
- 量子通信金融应用研究报告
- DBJ51-T 184-2021 四川省预成孔植桩技术标准
- 科技创新园区租赁合同样本
- 2024建筑工程数字化交付技术标准
- 经济职业技术学院教务教学管理制度汇编(2024年)
- 部队安全保密教育
- 神话故事民间故事《钟馗捉鬼》绘本课件
- 2024-2025华为ICT大赛(实践赛)-网络赛道理论考试题库大全-中(多选题)
- 部编人教版一年级上册道德与法治全册教案
- 国家安全教育高教-第六章坚持以经济安全为基础
评论
0/150
提交评论