Click here to Skip to main content
15,499,967 members
Home / Discussions / C#
   

C#

 
QuestionHow to retrieve SQL Server CE toolbox in Visual Studio 2019? Pin
Alex Dunlop5-May-21 7:51
MemberAlex Dunlop5-May-21 7:51 
AnswerRe: How to retrieve SQL Server CE toolbox in Visual Studio 2019? Pin
Gerry Schmitz5-May-21 9:24
mveGerry Schmitz5-May-21 9:24 
QuestionGet the value from a checklistbox Pin
Luis M. Rojas5-May-21 7:35
MemberLuis M. Rojas5-May-21 7:35 
AnswerRe: Get the value from a checklistbox Pin
Gerry Schmitz5-May-21 9:19
mveGerry Schmitz5-May-21 9:19 
GeneralRe: Get the value from a checklistbox Pin
Luis M. Rojas5-May-21 12:01
MemberLuis M. Rojas5-May-21 12:01 
GeneralRe: Get the value from a checklistbox Pin
Gerry Schmitz5-May-21 12:18
mveGerry Schmitz5-May-21 12:18 
GeneralRe: Get the value from a checklistbox Pin
Richard MacCutchan5-May-21 22:16
mveRichard MacCutchan5-May-21 22:16 
AnswerRe: Get the value from a checklistbox Pin
Alan N6-May-21 5:06
MemberAlan N6-May-21 5:06 
There is some confusion here as selection and checking are quite separate things and a selected item need not be checked. There is a SelectedValue property but there is no CheckedValue property.

I'll assume that the checkedlistbox item collection stores instances of a class such as
C#
class NameID {
  public String Name {get; set;};
  public Int32 ID {get; set;}
}

To iterate though the ID's of the checkeditems do something like this
C#
for (int i = 0; i <= chkListClienteEmail.CheckedItems.Count - 1; i++)
{
  
  Object rawObj = chkListClienteEmail.CheckedItems[i];
  NameID typedObj = (NameID)rawObj;

  string s = typedObj.ID.ToString();

  more code...
}

GeneralRe: Get the value from a checklistbox Pin
Luis M. Rojas7-May-21 4:30
MemberLuis M. Rojas7-May-21 4:30 
QuestionHow convert SQL Server Pivot functionality in C# uisng LINQ Pin
Mou_kol3-May-21 6:45
MemberMou_kol3-May-21 6:45 
QuestionRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Eddy Vluggen3-May-21 7:10
professionalEddy Vluggen3-May-21 7:10 
AnswerRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Mou_kol3-May-21 7:50
MemberMou_kol3-May-21 7:50 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Eddy Vluggen3-May-21 7:57
professionalEddy Vluggen3-May-21 7:57 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Gerry Schmitz3-May-21 8:49
mveGerry Schmitz3-May-21 8:49 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Eddy Vluggen3-May-21 12:23
professionalEddy Vluggen3-May-21 12:23 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Gerry Schmitz3-May-21 22:56
mveGerry Schmitz3-May-21 22:56 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
Pete O'Hanlon4-May-21 0:18
mvaPete O'Hanlon4-May-21 0:18 
GeneralRe: How convert SQL Server Pivot functionality in C# uisng LINQ Pin
OriginalGriff4-May-21 2:34
mveOriginalGriff4-May-21 2:34 
QuestionBinding Textblock Text and Textbox Text Pin
mnkdrt3-May-21 5:09
Membermnkdrt3-May-21 5:09 
AnswerRe: Binding Textblock Text and Textbox Text Pin
Gerry Schmitz3-May-21 9:07
mveGerry Schmitz3-May-21 9:07 
QuestionDebug decompile - urgent project restore Pin
Ahmedtsadek2-May-21 20:05
MemberAhmedtsadek2-May-21 20:05 
AnswerRe: Debug decompile - urgent project restore Pin
OriginalGriff2-May-21 20:32
mveOriginalGriff2-May-21 20:32 
AnswerRe: Debug decompile - urgent project restore Pin
Kuolung19673-May-21 1:48
MemberKuolung19673-May-21 1:48 
AnswerRe: Debug decompile - urgent project restore Pin
Gerry Schmitz3-May-21 8:42
mveGerry Schmitz3-May-21 8:42 
GeneralRe: Debug decompile - urgent project restore Pin
Richard Andrew x643-May-21 11:32
professionalRichard Andrew x643-May-21 11:32 

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.