Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
QuestionOpenPathDialog? Pin
livez17-Jan-07 1:14
livez17-Jan-07 1:14 
AnswerRe: OpenPathDialog? Pin
JoeSharp17-Jan-07 1:22
JoeSharp17-Jan-07 1:22 
GeneralRe: OpenPathDialog? Pin
livez17-Jan-07 1:30
livez17-Jan-07 1:30 
Questionhow to drag and drop a label in a panel? Pin
greyzz17-Jan-07 1:06
greyzz17-Jan-07 1:06 
AnswerRe: how to drag and drop a label in a panel? Pin
Vinay Dornala17-Jan-07 1:36
Vinay Dornala17-Jan-07 1:36 
QuestionWriting message in eventlog Pin
ParagGupta16-Jan-07 23:52
ParagGupta16-Jan-07 23:52 
Questionhow to store data from c# into sql server data base Pin
rao raja16-Jan-07 23:29
rao raja16-Jan-07 23:29 
AnswerRe: how to store data from c# into sql server data base Pin
Colin Angus Mackay17-Jan-07 0:01
Colin Angus Mackay17-Jan-07 0:01 
Create a SqlCommand to INSERT the data in the database.

SqlCommand cmd = new SqlCommand();
cmd.Connection = aConnection;
cmd.CommandText = "INSERT TableName(Column1, Column2, Column3) "+
                  "VALUES (@Value1, @Value2, Value3";
cmd.Parameters.Add("@Value1", theFirstValue);
cmd.Parameters.Add("@Value2", theSecondValue);
cmd.Parameters.Add("@Value3", theThirdValue);
cmd.ExecuteNonQuery();


You will have to replace theFirstValue, theSecondValue and theThirdValue with appropriate values. Also, you will have to restructure the INSERT statement to match your database. I've also assumed that you have a connection (aConnection) to the database.


AnswerRe: how to store data from c# into sql server data base Pin
Vinay Dornala17-Jan-07 0:08
Vinay Dornala17-Jan-07 0:08 
GeneralRe: how to store data from c# into sql server data base Pin
Colin Angus Mackay17-Jan-07 0:29
Colin Angus Mackay17-Jan-07 0:29 
GeneralRe: how to store data from c# into sql server data base Pin
Vinay Dornala17-Jan-07 1:29
Vinay Dornala17-Jan-07 1:29 
GeneralRe: how to store data from c# into sql server data base Pin
Colin Angus Mackay17-Jan-07 1:47
Colin Angus Mackay17-Jan-07 1:47 
QuestionC# WinForms: How to refresh an MdiChild.Icon when MdiChild is maximized Pin
H. Neville III16-Jan-07 23:02
H. Neville III16-Jan-07 23:02 
AnswerRe: C# WinForms: How to refresh an MdiChild.Icon when MdiChild is maximized Pin
il_masacratore17-Jan-07 3:21
il_masacratore17-Jan-07 3:21 
GeneralRe: C# WinForms: How to refresh an MdiChild.Icon when MdiChild is maximized Pin
H. Neville III21-Jan-07 22:13
H. Neville III21-Jan-07 22:13 
QuestionCrystalreport &dataset Pin
md_refay16-Jan-07 22:59
md_refay16-Jan-07 22:59 
AnswerRe: Crystalreport &dataset Pin
Blue_Boy17-Jan-07 0:18
Blue_Boy17-Jan-07 0:18 
AnswerRe: Crystalreport &dataset Pin
Vinay Dornala17-Jan-07 0:29
Vinay Dornala17-Jan-07 0:29 
Questionretrieve text from a currently selected cell of a datagrid Pin
Saira Tanwir16-Jan-07 22:55
Saira Tanwir16-Jan-07 22:55 
AnswerRe: retrieve text from a currently selected cell of a datagrid Pin
Seishin#16-Jan-07 22:59
Seishin#16-Jan-07 22:59 
GeneralRe: retrieve text from a currently selected cell of a datagrid Pin
Saira Tanwir16-Jan-07 23:04
Saira Tanwir16-Jan-07 23:04 
AnswerRe: Remote Computer Pin
JacquesDP17-Jan-07 0:18
JacquesDP17-Jan-07 0:18 
QuestionHow to Get Current Row Value on DataGirdView Pin
dataminers16-Jan-07 22:20
dataminers16-Jan-07 22:20 
AnswerRe: How to Get Current Row Value on DataGirdView Pin
Seishin#16-Jan-07 22:22
Seishin#16-Jan-07 22:22 
GeneralRe: How to Get Current Row Value on DataGirdView Pin
dataminers16-Jan-07 22:38
dataminers16-Jan-07 22:38 

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.