IEventBindingService::ShowCode Method (IComponent^, EventDescriptor^)

 

Displays the user code for the specified event.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

bool ShowCode(
	IComponent^ component,
	EventDescriptor^ e
)

Parameters

component
Type: System.ComponentModel::IComponent^

The component that the event is connected to.

e
Type: System.ComponentModel::EventDescriptor^

The event to display.

Return Value

Type: System::Boolean

true if the code is displayed; otherwise, false.

This method displays the code editor and positions the cursor on the line that the specified event is declared on.

.NET Framework
Available since 1.1
Return to top
Show: