Click here to Skip to main content
15,890,506 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do you add binary data to a memory stream Pin
Luc Pattyn19-Oct-09 10:12
sitebuilderLuc Pattyn19-Oct-09 10:12 
General[OT] belgian lunch Pin
harold aptroot19-Oct-09 11:01
harold aptroot19-Oct-09 11:01 
GeneralRe: [OT] belgian lunch Pin
Luc Pattyn19-Oct-09 11:08
sitebuilderLuc Pattyn19-Oct-09 11:08 
GeneralRe: [OT] belgian lunch Pin
Richard MacCutchan19-Oct-09 12:06
mveRichard MacCutchan19-Oct-09 12:06 
QuestionSearch a DataGrid Pin
mostapha77719-Oct-09 8:18
mostapha77719-Oct-09 8:18 
AnswerRe: Search a DataGrid Pin
Henry Minute19-Oct-09 9:02
Henry Minute19-Oct-09 9:02 
QuestionVB type collections in C# Pin
CheifyW19-Oct-09 7:05
CheifyW19-Oct-09 7:05 
AnswerRe: VB type collections in C# Pin
Not Active19-Oct-09 7:24
mentorNot Active19-Oct-09 7:24 
How would you do it in VB? Open a connection to the database, execute a command, iterate through the results, instantiate a class, add to a collection

List<MyClass> myClasses = new List<MyClass>();
IDataReader dr = cmd.ExecuteReader();
while(dr.Read())
{
   MyClass cls = new MyClas();
   cls.ID = dr.GetInt(0);
   ...
   myClasses.Add(myClass);
}



only two letters away from being an asset

GeneralRe: VB type collections in C# Pin
CheifyW19-Oct-09 8:33
CheifyW19-Oct-09 8:33 
GeneralRe: VB type collections in C# Pin
Christian Graus19-Oct-09 10:17
protectorChristian Graus19-Oct-09 10:17 
GeneralRe: VB type collections in C# Pin
CheifyW19-Oct-09 22:12
CheifyW19-Oct-09 22:12 
QuestionReading Excel Date - Strange Value Pin
Kevin Marois19-Oct-09 6:49
professionalKevin Marois19-Oct-09 6:49 
AnswerRe: Reading Excel Date - Strange Value Pin
Richard MacCutchan19-Oct-09 8:54
mveRichard MacCutchan19-Oct-09 8:54 
Questionmenu with directx Pin
behzadcp19-Oct-09 6:02
professionalbehzadcp19-Oct-09 6:02 
AnswerRe: menu with directx Pin
Christian Graus19-Oct-09 10:17
protectorChristian Graus19-Oct-09 10:17 
QuestionTest directory is empty Pin
abbd19-Oct-09 6:00
abbd19-Oct-09 6:00 
AnswerRe: Test directory is empty Pin
N a v a n e e t h19-Oct-09 6:09
N a v a n e e t h19-Oct-09 6:09 
AnswerRe: Test directory is empty Pin
stancrm19-Oct-09 6:11
stancrm19-Oct-09 6:11 
AnswerRe: Test directory is empty Pin
Luc Pattyn19-Oct-09 6:56
sitebuilderLuc Pattyn19-Oct-09 6:56 
Questiontransfer files from aclient to another using socket programming+c#? Pin
anabina19-Oct-09 5:46
anabina19-Oct-09 5:46 
AnswerRe: transfer files from aclient to another using socket programming+c#? Pin
N a v a n e e t h19-Oct-09 6:02
N a v a n e e t h19-Oct-09 6:02 
AnswerRe: transfer files from aclient to another using socket programming+c#? Pin
stancrm19-Oct-09 6:13
stancrm19-Oct-09 6:13 
QuestionReading Data from a CD Pin
AndyASPVB19-Oct-09 5:28
AndyASPVB19-Oct-09 5:28 
AnswerRe: Reading Data from a CD Pin
stancrm19-Oct-09 6:12
stancrm19-Oct-09 6:12 
GeneralRe: Reading Data from a CD Pin
AndyASPVB19-Oct-09 8:44
AndyASPVB19-Oct-09 8:44 

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.