Click here to Skip to main content
15,909,518 members
Home / Discussions / C#
   

C#

 
AnswerRe: Passing array by reference from C# to c++/cli Pin
Mark Salsbery3-Nov-11 5:25
Mark Salsbery3-Nov-11 5:25 
GeneralRe: Passing array by reference from C# to c++/cli Pin
eyalbi0073-Nov-11 22:23
eyalbi0073-Nov-11 22:23 
GeneralRe: Passing array by reference from C# to c++/cli Pin
Nish Nishant4-Nov-11 4:32
sitebuilderNish Nishant4-Nov-11 4:32 
GeneralRe: Passing array by reference from C# to c++/cli Pin
Nish Nishant4-Nov-11 4:32
sitebuilderNish Nishant4-Nov-11 4:32 
AnswerRe: Passing array by reference from C# to c++/cli Pin
Luc Pattyn3-Nov-11 5:34
sitebuilderLuc Pattyn3-Nov-11 5:34 
QuestionDatagrid checkbox column update Pin
HarYur2-Nov-11 23:19
HarYur2-Nov-11 23:19 
AnswerRe: Datagrid checkbox column update Pin
Luc Pattyn2-Nov-11 23:39
sitebuilderLuc Pattyn2-Nov-11 23:39 
AnswerRe: Datagrid checkbox column update Pin
Bernhard Hiller3-Nov-11 22:14
Bernhard Hiller3-Nov-11 22:14 
Actually I wanted to report this message to the Hall of Shame.
Look:
- You run in nested loops several times through your DataGridView
C#
for (int i = 0; i < dataGridView2.RowCount; i++) {
    foreach (DataGridViewRow dr in dataGridView2.Rows)


- You compare boolean values as a strings - it will fail with localized versions!
C#
if (dr.Cells[0].Value.ToString() != "true")

By the way, I posted such a coding horror some time ago. It was very hard to find out why the program strangely failed on that one computer.

- You create SQL queries by adding strings together. TextBox6 might contain bad code (SQL injection attack). Use parameterized queries instead.

- You add an array of numbers where one number is required:
and TEST_NO='" + TestId + "'";

instead of
and TEST_NO='" + TestId[i] + "'";

And that looks like using strings instead of numbers...
QuestionHow to run an application action on clicking link Pin
Knightwalker2-Nov-11 11:12
Knightwalker2-Nov-11 11:12 
AnswerRe: How to run an application action on clicking link Pin
Abhinav S2-Nov-11 17:59
Abhinav S2-Nov-11 17:59 
AnswerRe: How to run an application action on clicking link Pin
Mycroft Holmes2-Nov-11 20:24
professionalMycroft Holmes2-Nov-11 20:24 
Questionerror in adding the reference of my web service in C#.net Pin
yousefshokati1-Nov-11 23:32
yousefshokati1-Nov-11 23:32 
AnswerRe: error in adding the reference of my web service in C#.net REPOST Pin
Richard MacCutchan2-Nov-11 0:11
mveRichard MacCutchan2-Nov-11 0:11 
QuestionPlease help with writing to a serial port Pin
turbosupramk31-Nov-11 20:12
turbosupramk31-Nov-11 20:12 
AnswerRe: Please help with writing to a serial port Pin
BobJanova1-Nov-11 23:51
BobJanova1-Nov-11 23:51 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 2:10
turbosupramk32-Nov-11 2:10 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 3:25
sitebuilderLuc Pattyn2-Nov-11 3:25 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 3:55
turbosupramk32-Nov-11 3:55 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 4:22
sitebuilderLuc Pattyn2-Nov-11 4:22 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 5:48
turbosupramk32-Nov-11 5:48 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 6:52
sitebuilderLuc Pattyn2-Nov-11 6:52 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 9:00
turbosupramk32-Nov-11 9:00 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 9:11
sitebuilderLuc Pattyn2-Nov-11 9:11 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 9:54
turbosupramk32-Nov-11 9:54 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 10:10
sitebuilderLuc Pattyn2-Nov-11 10:10 

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.