共用方式為


Raising Events from a Component

Raising an event from a component is no different from raising an event from a class that is not a component. For details, see Handling and Raising Events. Since components are designable, you must apply attributes to event members to ensure that they are displayed correctly in the property browser. For details, see Design-Time Attributes for Components.

See Also

Concepts

Design-Time Attributes for Components