[This is preliminary documentation and is subject to change.]
Indicates 0-based index of button that has focus when message box is shown and that is default button for message box
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
[KnownCategoryAttribute(KnownCategoryAttribute..::..KnownCategories.Behavior)] [DefaultValueAttribute()] public int DefaultButton { get; set; } |
| Visual Basic |
|---|
<KnownCategoryAttribute(KnownCategoryAttribute..::..KnownCategories.Behavior)> _ <DefaultValueAttribute()> _ Public Property DefaultButton As Integer Get Set |
| Visual C++ |
|---|
[KnownCategoryAttribute(KnownCategoryAttribute..::..KnownCategories::Behavior)] [DefaultValueAttribute()] public: property int DefaultButton { int get (); void set (int value); } |
| F# |
|---|
[<KnownCategoryAttribute(KnownCategoryAttribute..::..KnownCategories.Behavior)>] [<DefaultValueAttribute()>] member DefaultButton : int with get, set |
| JScript |
|---|
function get DefaultButton () : int function set DefaultButton (value : int) |
Remarks
Default button is treated as being clicked when user presses Enter. If value is set outside of range of Buttons (i.e. -1), message box has no default button.
If messagebox implementation supports changes of Buttons collection when displayed, this property is changed on buttom insert/removal and it points strill to the same physical button.