界面Chapter3.ppt

  1. 1、本文档共44页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
User-Centered Design and Testing Chapter 3 VB.NET Forms Introduction Development Basic 1960‘s simple Structured programming languages True Basic Quick Basic Turbo Basic Introduction Windows GUI Users:convenient(mouse) Programmers:difficult Visual programming General Visual designer Visual Basic Microsoft,1991 Visual Basic Visual What you see is what you get Fit for interface design Object-oriented Programming(OOP) encapsulation : data/program- object every object has properties Structured Programming goto endless loop logical strcuture Sub-procedure/ function Event-driven Programming Basics Event Event-driven Opp (object) Property Method Event VB most popular programming languages in the area of user interfaces. supports rapid prototyping of user interfaces, making it possible to test many aspects of a systems usability before its implementation is complete. Once you have learned to use Visual Basic, you will also be able to apply this approach to other languages and systems. Contents 3.1 Form’s Property, Method and Event 3.2 Mouse Event 3.3 Keyboard Event 3.1 Form’s Property, Method and Event Some Form’s Properties The form class has 54 public properties. How can we know what they are? Ordinary Properties Name Text Size/Location ForeColor/BackColor Cursor Dock Enabled/Visible Some Form’s Properties Some Form’s Properties We can use form’s properties to set or change the appearance of form at design time or run time, such as form’s back color. Me.BackColor = Color.Black() Some Form’s Methods The form class has 18 public methods. We will discuss Close, Hide, SetBounds, Show. Some Form’s Methods Some Form’s Methods Some Form’s Events The form class has 33 public events. We will discuss Click, FormClosed, FormClosing. Some Form’s Events Some Form’s Events Add Controls during Run Time The basic steps: Step1: Declare a control object. Step2: Create a new control object and initialize it. Step3: Add it into Controls collection. Step4: Ad

文档评论(0)

word.ppt文档 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档