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

Switches MessageBox from Closed to CreatedState

Namespace:  Tools.WindowsT.IndependentT
Assembly:  Tools.Windows (in Tools.Windows.dll) Version: 1.5.2.0

Syntax

C#
public void Recycle()
Visual Basic (Declaration)
Public Sub Recycle
Visual C++
public:
void Recycle()
J#
public void Recycle()
JScript
public function Recycle()

Remarks

This method cannot be overriden. Override RecycleInternal()()() instead which is called only when necessary.

Calling this method has no effect when State is Created and causes InvalidOperationException when State is Shown.

Show(Window, String) and DisplayTemplate(MessageBox, MessageBox, IWin32Window, String, String) instance methods call Recycle()()() if necessary.

When re-cycling message boxex, you should keep in mind that youre can change state of it (check boxes, radio buttons, combo boxes, custom controls)

Exceptions

See Also