2013-07-28 81 views

回答

3

處理ItemCheck事件並閱讀NewValue屬性以確定它是要檢查還是未檢查。

private void myListView_ItemCheck(object sender, ItemCheckEventArgs e) 
{ 
    if (e.NewValue == CheckState.Unchecked) 
    { 
     //unchecked 
    }  
    else if(e.NewValue == CheckState.Checked) 
    { 
     //checked 
    }    
}