- 1、本文档共14页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
人机交互用户界面设计实验报告
实验一 图形用户界面的设计
一 实验目的和要求
1) 熟悉图形用户界面的设计原则
2)利用一种设计工具完成图形化的用户界面设计
二 实验内容与步骤
(一) 实验内容:
利用常用的设计工具(VC/VB/Delphi/PB等)完成一个通用图形用户界面设计,要遵循界面设计的一般原则(一致性、快捷方式、提供错误处理),注意颜色的使用,学会使用图标、按钮、屏幕布局、菜单和对话框的设计
(二)实验步骤
1.设计多个对话框,完成填表输入界面的设计,合理使用图标、按钮、颜色;
2.设计不同形式的菜单,完成对不同对话框的调用;
3.提供简单的错误处理、联机帮助
三 界面示例
1、 登录界面
2、主界面
1
3代码:
登录界面:
using System;
using System.Drawing; using System.Collections;
using System.ComponentModel; using System.Windows.Forms; using System.Data;
2
using System.Data.OleDb;
// Download by
namespace WealthMIS.user
{
/// lt;summarygt;
/// Form1 的摘要说明。
/// lt;/summarygt;
public class Login : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btClose;
private System.Windows.Forms.TextBox password;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox comboName;
/// lt;summarygt;
/// 必需的设计器变量。
/// lt;/summarygt;
private System.ComponentModel.Container components = null; private System.Windows.Forms.Button btSure;
private OleDbConnection oleConnection1 = null;
public Login()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码 //
}
/// lt;summarygt;
/// 清理所有正在使用的资源。
/// lt;/summarygt;
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
3
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// lt;summarygt;
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的 this.btClose = new System.Windows.Forms.Button();
this.btSure = new System.Windows.Forms.Button();
this.password = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
boName = new System.Windows.Forms.ComboBox(); this.SuspendLayout();
//
// btClose
//
this.btClose.FlatStyle = System.Windows.Form
您可能关注的文档
- 中泰铁路看一带一路.docx
- 冬季施工要求.doc
- 古建阁楼施工组织设计.doc
- 品牌服装店设计作业PPT.ppt
- 单位工程施工组织设计案例.doc
- 十字路口交通灯设计.doc
- 供变电技术课程设计.doc
- 交直流课程设计.doc
- 主体结构施工监理细则.doc
- 别墅设计调研报告.doc
- GB/T 45393.3-2025信息技术 建筑信息模型(BIM)软件 第3部分:模型视图定义.pdf
- GB/T 27534.9-2025畜禽遗传资源调查技术规范 第9部分:家禽.pdf
- 中国国家标准 GB/T 27534.9-2025畜禽遗传资源调查技术规范 第9部分:家禽.pdf
- 《GB/T 27534.9-2025畜禽遗传资源调查技术规范 第9部分:家禽》.pdf
- 《GB/T 45618-2025安全与韧性 危机管理 指南》.pdf
- GB/T 33588.3-2025雷电防护系统部件(LPSC) 第3部分:隔离放电间隙(ISGs)的要求.pdf
- 中国国家标准 GB/T 25105.3-2025工业通信网络 现场总线规范 类型10:PROFINET IO规范 第3部分:PROFINET IO通信行规.pdf
- 《GB/T 25105.3-2025工业通信网络 现场总线规范 类型10:PROFINET IO规范 第3部分:PROFINET IO通信行规》.pdf
- 中国国家标准 GB/T 12279.3-2025心血管植入器械 人工心脏瓣膜 第3部分:经导管植入式人工心脏瓣膜.pdf
- 中国国家标准 GB/T 45523.3-2025放射性物质远程操作装置 第3部分:电随动主从机械手.pdf
文档评论(0)