Click here to Skip to main content
       

C#

 
GeneralRe: how i get data from datatable [modified] PinmemberPIEBALDconsult14-Jan-13 3:05 
GeneralRe: how i get data from datatable Pinmembera1_shay14-Jan-13 3:08 
GeneralRe: how i get data from datatable PinmemberPIEBALDconsult14-Jan-13 3:36 
GeneralRe: how i get data from datatable Pinmembera1_shay14-Jan-13 12:34 
Questionis it possible to work with Word files using Binary Reader and writer? Pinmemberasem052513-Jan-13 5:41 
AnswerRe: is it possible to work with Word files using Binary Reader and writer? PinmemberGarth J Lancaster13-Jan-13 10:19 
QuestionDeleting registry values PinmemberErol230913-Jan-13 4:51 
AnswerRe: Deleting registry values [modified] Pinmember ProgramFOX13-Jan-13 6:06 
Hi,
 
 if(t[i] == (string)checkedListBox1.SelectedItem)
SelectedItem is one item, use SelectedItems to get all selected items:
if (checkedListBox1.SelectedItems.Contains(t[i]))
Add also this in the constructor:
  checkedListBox1.SelectionMode = SelectionMode.MultiExtended; // a user can select multiple items using the CTRL key, SHIFT key and the arrow keys
   // OR:
  checkedListBox1.SelectionMode = SelectionMode.MultiSimple; // if a user clicked on a selected item in the list box, that item will be deselected, and if the user clicked on a deselected item in the list box, that item will be selected
Hope this helps.
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em>
ProgramFOX


modified 14-Jan-13 11:57am.

GeneralRe: Deleting registry values PinmemberErol230913-Jan-13 8:44 
GeneralRe: Deleting registry values Pinmember ProgramFOX14-Jan-13 5:57 
AnswerRe: Deleting registry values PinprotectorPete O'Hanlon13-Jan-13 8:56 
GeneralRe: Deleting registry values PinmemberErol230913-Jan-13 22:17 
GeneralRe: Deleting registry values Pinmemberjibesh13-Jan-13 22:32 
GeneralRe: Deleting registry values PinprotectorPete O'Hanlon13-Jan-13 23:40 
QuestionIndex was outside the bounds of the array. PinmemberErol230913-Jan-13 4:11 
AnswerRe: Index was outside the bounds of the array. PinmvpOriginalGriff13-Jan-13 4:15 
GeneralRe: Index was outside the bounds of the array. PinmemberErol230913-Jan-13 4:17 
GeneralRe: Index was outside the bounds of the array. PinmvpOriginalGriff13-Jan-13 4:21 
AnswerRe: Index was outside the bounds of the array. PinmemberPIEBALDconsult13-Jan-13 4:41 
QuestionObject reference not set to an instance of an object PinmemberErol230912-Jan-13 19:25 
AnswerRe: Object reference not set to an instance of an object Pinmemberjibesh12-Jan-13 19:41 
QuestionSaving selected option into database PinmemberOyebisi Jemil12-Jan-13 11:31 
AnswerRe: Saving selected option into database PinprotectorPete O'Hanlon12-Jan-13 11:45 
AnswerRe: Saving selected option into database PinmvpDave Kreskowiak12-Jan-13 12:48 
GeneralRe: Saving selected option into database PinmemberBrisingr Aerowing12-Jan-13 13:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 30 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid