Click here to Skip to main content
16,004,991 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Form Pin
faisal khanani12-Dec-05 18:14
faisal khanani12-Dec-05 18:14 
Questionload a .gif image at runtime in crystal report Pin
dhol12-Dec-05 2:01
dhol12-Dec-05 2:01 
QuestionRead .dif file format + store in dataser Pin
Darshan Gandhi12-Dec-05 1:36
Darshan Gandhi12-Dec-05 1:36 
AnswerRe: Read .dif file format + store in dataser Pin
Dave Kreskowiak12-Dec-05 6:21
mveDave Kreskowiak12-Dec-05 6:21 
QuestionImplement CheckBoxes in Listbox? Pin
MudkiSekhon12-Dec-05 1:27
MudkiSekhon12-Dec-05 1:27 
AnswerRe: Implement CheckBoxes in Listbox? Pin
Polis Pilavas12-Dec-05 2:29
Polis Pilavas12-Dec-05 2:29 
GeneralRe: Implement CheckBoxes in Listbox? Pin
MudkiSekhon12-Dec-05 2:40
MudkiSekhon12-Dec-05 2:40 
GeneralRe: Implement CheckBoxes in Listbox? Pin
Polis Pilavas12-Dec-05 4:41
Polis Pilavas12-Dec-05 4:41 
Yes, take a look below at the following self-explanatory code chunk. First I add three items into the checkedListBox, and then I get the text of the selected ones by looping through each one of them:
string <code>checkedItems </code>= "";

// Add a few items into the checkedListBox control
this.checkedListBox1.Items.Add("Item 1", CheckState.Checked);
this.checkedListBox1.Items.Add("Item 2", CheckState.Indeterminate);
this.checkedListBox1.Items.Add("Item 3", CheckState.Unchecked);

// Retrieve the selected items in a string
for (int i = 0; i < this.checkedListBox1.Items.Count; i++)
{
	if (this.checkedListBox1.GetItemChecked(i))
		<code>checkedItems </code>+= this.checkedListBox1.Items[i].ToString() + "\n";
}

MessageBox.Show(<code>checkedItems</code>);


Regards,
Polis

Can you practice what you teach?
QuestionRetreiving and displaying strings...in Treeview Pin
Mahi.Ragava11-Dec-05 23:17
Mahi.Ragava11-Dec-05 23:17 
QuestionLogout code.. Pin
momoo11-Dec-05 22:30
momoo11-Dec-05 22:30 
AnswerRe: Logout code.. Pin
Dave Kreskowiak12-Dec-05 6:18
mveDave Kreskowiak12-Dec-05 6:18 
QuestionDll Reflector Pin
AB777111-Dec-05 22:22
AB777111-Dec-05 22:22 
AnswerRe: Dll Reflector Pin
S. Senthil Kumar11-Dec-05 23:06
S. Senthil Kumar11-Dec-05 23:06 
GeneralRe: Dll Reflector Pin
AB777111-Dec-05 23:19
AB777111-Dec-05 23:19 
GeneralRe: Dll Reflector Pin
S. Senthil Kumar11-Dec-05 23:25
S. Senthil Kumar11-Dec-05 23:25 
GeneralRe: Dll Reflector Pin
Jared Parsons12-Dec-05 4:49
Jared Parsons12-Dec-05 4:49 
GeneralRe: Dll Reflector Pin
Dave Kreskowiak12-Dec-05 6:14
mveDave Kreskowiak12-Dec-05 6:14 
GeneralRe: Dll Reflector Pin
S. Senthil Kumar12-Dec-05 15:44
S. Senthil Kumar12-Dec-05 15:44 
QuestionRetreiving and displaying strings... Pin
Mahi.Ragava11-Dec-05 22:20
Mahi.Ragava11-Dec-05 22:20 
AnswerRe: Retreiving and displaying strings... Pin
occcy11-Dec-05 22:27
occcy11-Dec-05 22:27 
GeneralRe: Retreiving and displaying strings... Pin
Mahi.Ragava11-Dec-05 22:35
Mahi.Ragava11-Dec-05 22:35 
GeneralRe: Retreiving and displaying strings... Pin
S. Senthil Kumar11-Dec-05 23:07
S. Senthil Kumar11-Dec-05 23:07 
QuestionHow to Program for Dallas Semi conductor IButton Pin
vhkg11-Dec-05 22:11
vhkg11-Dec-05 22:11 
AnswerRe: How to Program for Dallas Semi conductor IButton Pin
Tim Paaschen11-Dec-05 22:31
Tim Paaschen11-Dec-05 22:31 
QuestionHow can I Create and use Custom Controls ? Pin
Abubakarsb11-Dec-05 22:04
Abubakarsb11-Dec-05 22:04 

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

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