Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "1 Prototyping for HCI Spring 2004 (Week 10) Jorge A. Toro."— Presentation transcript:

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

2 2 The Language Custom Controls

3 HCI430 – J.Toro3 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 HCI430 – J.Toro4

5 5

6 6

7 7 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

8 HCI430 – J.Toro8 Example Custom label

9 HCI430 – J.Toro9 Custom Controls

10 HCI430 – J.Toro10 Adding properties 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 Public Property Title() Get Return label1.text End Get Set(ByVal Value) label1.text = Value End Set End Property

11 HCI430 – J.Toro11 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.

12 HCI430 – J.Toro12

13 HCI430 – J.Toro13 Using the control The properties window will show the properties you defined for the control as well as others that come by default

14 HCI430 – J.Toro14 Questions?


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

Similar presentations


Ads by Google