[This is preliminary documentation and is subject to change.]

Gets or sets state of the close button ('X') of current ExtendedForm

Namespace: Tools.WindowsT.FormsT
Assembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
[KnownCategoryAttribute(KnownCategoryAttribute..::..KnownCategories.WindowStyle)]
[LDescriptionAttribute(typeof(ControlsWin), "CloseBoxEnabled_d", "")]
public ExtendedForm..::..SystemMenuState CloseBoxEnabled { get; set; }
Visual Basic
<KnownCategoryAttribute(KnownCategoryAttribute..::..KnownCategories.WindowStyle)> _
<LDescriptionAttribute(GetType(ControlsWin), "CloseBoxEnabled_d",  _
	"")> _
Public Property CloseBoxEnabled As ExtendedForm..::..SystemMenuState
	Get
	Set
Visual C++
[KnownCategoryAttribute(KnownCategoryAttribute..::..KnownCategories::WindowStyle)]
[LDescriptionAttribute(typeof(ControlsWin), L"CloseBoxEnabled_d", L"")]
public:
property ExtendedForm..::..SystemMenuState CloseBoxEnabled {
	ExtendedForm..::..SystemMenuState get ();
	void set (ExtendedForm..::..SystemMenuState value);
}
F#
[<KnownCategoryAttribute(KnownCategoryAttribute..::..KnownCategories.WindowStyle)>]
[<LDescriptionAttribute(typeof(ControlsWin), "CloseBoxEnabled_d", "")>]
member CloseBoxEnabled : ExtendedForm..::..SystemMenuState with get, set
JScript
function get CloseBoxEnabled () : ExtendedForm..::..SystemMenuState
function set CloseBoxEnabled (value : ExtendedForm..::..SystemMenuState)

Field Value

New state of button

Return Value

Curent state of button

Remarks

Status of menu is not re-set after changing MinimizeBox or MaximizeBox property. You have to refresh user-visible status of this property manually!

Exceptions

ExceptionCondition
System..::..ArgumentExceptionError while accessing system menu status (may be caused by no close item in system menu - e.g. because CloseBox is false)

See Also