Support.SetDefault(Button, Boolean) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
의 AcceptButton 속성을 Form설정합니다.
public:
static void SetDefault(System::Windows::Forms::Button ^ btn, bool Default);
public static void SetDefault(System.Windows.Forms.Button btn, bool Default);
[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 SetDefault(System.Windows.Forms.Button btn, bool Default);
static member SetDefault : 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 SetDefault : System.Windows.Forms.Button * bool -> unit
Public Sub SetDefault (btn As Button, Default As Boolean)
매개 변수
- Default
- Boolean
- 특성
설명
Visual Basic 6.0에서 컨트롤의 CommandButton 부울 Default 및 Cancel 속성은 컨트롤이 ENTER 키 또는 ESC 키에 각각 응답하는지 여부를 결정합니다. Visual Basic에서 컨트롤에는 Button 더 이상 속성이나 속성이 DefaultCancel 없습니다. 개체에는 FormAcceptButton 동일한 기능을 제공하는 속성이 있으며 CancelButton , 이러한 속성은 컨트롤의 Button 이름을 인수로 사용합니다.
이 함수는 업그레이드된 Visual Basic 6.0 CommandButton 컨트롤의 Form 속성을 기반으로 Default 하는 속성을 설정 AcceptButton 하기 위해 업그레이드 도구에서 사용됩니다.
메모
네임스페이 Microsoft.VisualBasic.Compatibility.VB6 스의 함수 및 개체는 Visual Basic 6.0에서 Visual Basic 2008로 업그레이드하기 위한 도구에서 사용할 수 있도록 제공됩니다. 대부분의 경우 이러한 함수와 개체는 .NET Framework의 다른 네임스페이스에서 찾을 수 있는 기능을 복제합니다. Visual Basic 6.0 코드 모델이 .NET Framework 구현과 크게 다른 경우에만 필요합니다.