1 / 14

Prototyping for HCI

Prototyping for HCI. Spring 2004 (Week 10) Jorge A. Toro. The Language. Custom Controls. Custom Controls. Controls are graphic objects that represent the properties or operations of other objects VB.NET Allows you to create your own set of controls. Custom Controls.

ccarlton
Download Presentation

Prototyping for HCI

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Prototyping for HCI Spring 2004 (Week 10) Jorge A. Toro

  2. The Language Custom Controls

  3. Custom Controls • Controls are graphic objects that represent the properties or operations of other objects • VB.NET Allows you to create your own set of controls

  4. Custom Controls • There are different kinds of custom controls • We will focus in the simplest ones • You can add any controls you want similar to what you do when creating forms

  5. Example • Custom label

  6. Custom Controls

  7. Two sections Get What the property returns if someone tries to read it Set What the property receives if someone tries to write in it Adding properties Public Property Title() Get Return label1.text EndGet Set(ByVal Value) label1.text = Value EndSet EndProperty

  8. Using the Control • The custom control will appear in the control toolbox. • Drag the control over the form just as any other control. • Warning! You need to compile the project first before putting the control in.

  9. Using the control • The properties window will show the properties you defined for the control as well as others that come by default

  10. Questions?

More Related