다음을 통해 공유


Support.SetCancel(Button, Boolean) 메서드

정의

주의

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

CancelButtonForm 속성을 설정합니다.

public:
 static void SetCancel(System::Windows::Forms::Button ^ btn, bool Cancel);
public static void SetCancel (System.Windows.Forms.Button btn, bool Cancel);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static void SetCancel (System.Windows.Forms.Button btn, bool Cancel);
static member SetCancel : System.Windows.Forms.Button * bool -> unit
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member SetCancel : System.Windows.Forms.Button * bool -> unit
Public Sub SetCancel (btn As Button, Cancel As Boolean)

매개 변수

Cancel
Boolean

Visual Basic 6.0 true 컨트롤의 CommandButton 속성이 Cancel이면 true이고, 그렇지 않으면 false입니다.

특성

설명

Visual Basic 6.0에서는 부울 DefaultCancel 의 속성을 CommandButton 컨트롤 컨트롤에 응답할지 여부를 ENTER 또는 ESC 키를 각각 확인 합니다. Visual Basic의 경우에 Button 컨트롤에 더 이상 Default 또는 Cancel 속성입니다. 합니다 Form 개체에 AcceptButtonCancelButton 속성 동일한 기능을 제공 하는 작업은 이러한 속성의 이름을 걸릴를 Button 인수로 제어 합니다.

설정 하려면 업그레이드 도구에서이 함수는를 CancelButton 의 속성을 Form속성을 기반으로 합니다 Cancel 는 업그레이드 된 Visual Basic 6.0의 속성 CommandButton 컨트롤.

참고

Visual Basic 6.0에서 Visual Basic 2008으로의 업그레이드 도구에서 사용할 수 있도록 Microsoft.VisualBasic.Compatibility.VB6 네임스페이스의 함수 및 개체가 제공됩니다. 이러한 함수와 개체에서 제공하는 대부분의 기능은 .NET Framework의 다른 네임스페이스에서 얻을 수 있는 기능과 동일하므로 이러한 함수와 개체는 Visual Basic 6.0 코드 모델이 .NET Framework 구현과 크게 다른 경우에만 필요합니다.

적용 대상