- 11
- 0
- 约1.8万字
- 约 16页
- 2019-10-29 发布于安徽
- 举报
实用
PAGE
文档
实验一 图形用户界面的设计
一 实验目的和要求1) 熟悉图形用户界面的设计原则
2)利用一种设计工具完成图形化的用户界面设计
二 实验内容与步骤
(一) 实验内容:
利用常用的设计工具(VC/VB/Delphi/PB等)完成一个通用图形用户界面设计,要遵循界面设计的一般原则(一致性、快捷方式、提供错误处理),注意颜色的使用,学会使用图标、按钮、屏幕布局、菜单和对话框的设计
(二)实验步骤
1.设计多个对话框,完成填表输入界面的设计,合理使用图标、按钮、颜色;
2.设计不同形式的菜单,完成对不同对话框的调用;
3.提供简单的错误处理、联机帮助
三 界面示例
登录界面
2、主界面
3代码:
登录界面:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
// Download by
namespace WealthMIS.user
{
/// summary
/// Form1 的摘要说明。
/// /summary
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;
/// summary
/// 必需的设计器变量。
/// /summary
private System.ComponentModel.Container components = null;
private System.Windows.Forms.Button btSure;
private OleDbConnection oleConnection1 = null;
public Login()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// summary
/// 清理所有正在使用的资源。
/// /summary
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// summary
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// /summary
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login));
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.Win
您可能关注的文档
最近下载
- 2020高考物理:计算题专项训练.pdf VIP
- 2025年湖南铁路科技职业技术学院单招职业技能测试题库一套.docx VIP
- 尾矿库安全技术知识--培训课件.ppt VIP
- 尾矿库安全培训精选课件.ppt VIP
- 四级高频词汇带音标版.pdf VIP
- 化妆品检验与安全性评价 第一第二章.pptx VIP
- 农村自建房包工不包料合同模板.docx VIP
- 【2025届】青海初中学业水平考试中考语文真题试题【原卷+解析】.pdf
- 尾矿库基础知识培训.pptx VIP
- Unit 5 School activities Wrap up & Let's explore 课件(共36张PPT) 外研版英语四年级下册.pptx
原创力文档

文档评论(0)