Version

SetCheckState Method

Sets the checkstate for the supplied item
Syntax
'Declaration
 
Public Sub SetCheckState( _
   ByVal oItemArg As System.Object, _
   ByVal bCheckState As System.Boolean _
) 
public void SetCheckState( 
   System.object oItemArg,
   System.bool bCheckState
)
public: void SetCheckState( 
   System.Object* oItemArg,
   System.bool bCheckState
) 

Parameters

oItemArg
integer index or string text value of the item to be checked
bCheckState
boolean value representing the new checkstate of the item's checkbox
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also