Setting Properties and Events

From Appmethod Topics
Jump to: navigation, search

Go Up to How To Create Forms and Projects, and Write the Code Behind

Properties, methods, and events are attributes of a component.

To set object properties

  1. On your form, click once on the object to select it.
  2. In the Object Inspector, click the Properties tab.
  3. Select the property that you want to change and either enter a value in the text box, select a value from the drop-down list, or click the ellipsis (...) next to the text box to use the associated property editor, depending on which update technique is available for the property.

To set an event handler

  1. On your form, click once on the object to select it.
  2. On the Object Inspector, click the Events tab.
  3. If an event handler already exists, select it from the drop-down box. Otherwise, double-click the event to switch to Code view.
  4. Type the code you want to execute when the event occurs.

See Also