Cocktail Help Reference
TryClose Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IDialogHost Interface : TryClose Method



dialogResult
The simulated user response.

Glossary Item Box

Instructs the dialog host to try closing the dialog window with the provided user response.

Syntax

Visual Basic (Declaration) 
Sub TryClose( _
   ByVal dialogResult As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As IDialogHost
Dim dialogResult As Object
 
instance.TryClose(dialogResult)
C# 
void TryClose( 
   object dialogResult
)
C++/CLI 
void TryClose( 
   Object^ dialogResult
) 

Parameters

dialogResult
The simulated user response.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.