DoDefaultAction Method

ComponentDesigner.DoDefaultAction Method

Creates a method signature in the source code file for the default event on the component and navigates the user's cursor to that location.

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

public virtual void DoDefaultAction ()
public void DoDefaultAction ()
public function DoDefaultAction ()
Not applicable.

Exception typeCondition

CheckoutException

An attempt to check out a file that is checked into a source code management program failed.

In Windows Forms and Web Forms designers, this method is invoked when a user double-clicks a component.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2016 Microsoft