Click here to Skip to main content
15,911,142 members
Home / Discussions / C#
   

C#

 
Questionc# assemblies app.config [modified] Pin
christalin11-Mar-07 19:45
christalin11-Mar-07 19:45 
AnswerRe: c# assemblies app.config Pin
Stefan Troschuetz11-Mar-07 22:04
Stefan Troschuetz11-Mar-07 22:04 
GeneralRe: c# assemblies app.config [modified] Pin
christalin11-Mar-07 22:56
christalin11-Mar-07 22:56 
QuestionHow To Reorder Record in DataGridView during Runtime? Pin
indiaone11-Mar-07 20:29
indiaone11-Mar-07 20:29 
QuestionProblem using "System.Management" to get the DVD name? Pin
Khoramdin11-Mar-07 18:22
Khoramdin11-Mar-07 18:22 
AnswerRe: Problem using "System.Management" to get the DVD name? Pin
Niiiissssshhhhhuuuuu12-Mar-07 0:58
Niiiissssshhhhhuuuuu12-Mar-07 0:58 
QuestionHow to Insert/Read a BLOB Field With DB2 DataBase? Pin
weiweiplay11-Mar-07 17:53
weiweiplay11-Mar-07 17:53 
AnswerRe: How to Insert/Read a BLOB Field With DB2 DataBase? Pin
Udhaya Kumar.D12-Mar-07 0:32
Udhaya Kumar.D12-Mar-07 0:32 
SQLCommand sql_cmd = null;

//create a table with blob field
sql_cmd.CommandText = "CREATE TABLE blob_sample (image BLOB);";
sql_cmd.ExecuteNonQuery();

byte[] buf = new byte[1024];

//Read an image
FileStream file = new FileStream("debug.bmp", FileMode.OpenOrCreate, FileAccess.Write);
BinaryWriter bw = new BinaryWriter(file);
resStream.Read(buf, 0, System.Convert.ToInt32(buf.Length));
bw.Write(buf);
bw.Close();
file.Close();

//Insert the image in the database
sql_cmd.CommandText = "INSERT INTO blob_sample (image) VALUES (@image)";

SQLParameter parm1 = new SQLParameter();
parm1.DbType = DbType.Binary;
parm1.ParameterName = "@image";
parm1.Value = (byte[])buf;

sql_cmd.Parameters.Add(parm1);

sql_cmd.ExecuteNonQuery();
QuestionXML serializer problem and replacement... Pin
Super Lloyd11-Mar-07 14:13
Super Lloyd11-Mar-07 14:13 
QuestionMenu question [modified] Pin
Mike Hankey11-Mar-07 14:05
mveMike Hankey11-Mar-07 14:05 
Questioncreate an object from a VC++ class Pin
MinaFawzi11-Mar-07 13:18
MinaFawzi11-Mar-07 13:18 
AnswerRe: create an object from a VC++ class Pin
S. Senthil Kumar11-Mar-07 15:00
S. Senthil Kumar11-Mar-07 15:00 
GeneralRe: create an object from a VC++ class Pin
MinaFawzi11-Mar-07 22:02
MinaFawzi11-Mar-07 22:02 
QuestionReferences to an object Pin
Zoltan Balazs11-Mar-07 11:50
Zoltan Balazs11-Mar-07 11:50 
AnswerRe: References to an object Pin
Christian Graus11-Mar-07 11:10
protectorChristian Graus11-Mar-07 11:10 
GeneralRe: References to an object Pin
Zoltan Balazs11-Mar-07 12:29
Zoltan Balazs11-Mar-07 12:29 
GeneralRe: References to an object Pin
badgrs11-Mar-07 14:09
badgrs11-Mar-07 14:09 
GeneralRe: References to an object Pin
S. Senthil Kumar11-Mar-07 15:02
S. Senthil Kumar11-Mar-07 15:02 
GeneralRe: References to an object Pin
Scott Dorman11-Mar-07 15:32
professionalScott Dorman11-Mar-07 15:32 
GeneralRe: References to an object Pin
Zoltan Balazs11-Mar-07 17:31
Zoltan Balazs11-Mar-07 17:31 
GeneralRe: References to an object Pin
Scott Dorman11-Mar-07 17:49
professionalScott Dorman11-Mar-07 17:49 
AnswerRe: References to an object Pin
Guffa11-Mar-07 16:26
Guffa11-Mar-07 16:26 
GeneralRe: References to an object Pin
Zoltan Balazs11-Mar-07 17:41
Zoltan Balazs11-Mar-07 17:41 
GeneralRe: References to an object Pin
Zoltan Balazs12-Mar-07 7:15
Zoltan Balazs12-Mar-07 7:15 
QuestionHow to assign value to generic list member Pin
AndrusM11-Mar-07 10:46
AndrusM11-Mar-07 10:46 

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.