Click here to Skip to main content
15,906,708 members
Home / Discussions / C#
   

C#

 
GeneralRe: event for adding item in listbox Pin
Anthony Mushrow7-Dec-07 6:22
professionalAnthony Mushrow7-Dec-07 6:22 
GeneralRe: event for adding item in listbox Pin
Xmen Real 7-Dec-07 14:42
professional Xmen Real 7-Dec-07 14:42 
Generaldatagridview cell colour Pin
arkiboys7-Dec-07 5:29
arkiboys7-Dec-07 5:29 
GeneralRe: datagridview cell colour Pin
Giorgi Dalakishvili7-Dec-07 5:44
mentorGiorgi Dalakishvili7-Dec-07 5:44 
Generalincrement by 1 Pin
eyeseetee7-Dec-07 4:41
eyeseetee7-Dec-07 4:41 
AnswerRe: increment by 1 Pin
Guffa7-Dec-07 4:51
Guffa7-Dec-07 4:51 
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 4:58
eyeseetee7-Dec-07 4:58 
AnswerRe: increment by 1 Pin
Guffa7-Dec-07 5:04
Guffa7-Dec-07 5:04 
The problem is not at all in increasing the value, but where you read the value from the database. You are not getting the value that the database returns, but the number of records that the result contains.

Use ExecuteScalar instead of ExecuteNonQuery.


Experience is the sum of all the mistakes you have done.

GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 5:10
eyeseetee7-Dec-07 5:10 
GeneralRe: increment by 1 Pin
Ian Shlasko7-Dec-07 5:21
Ian Shlasko7-Dec-07 5:21 
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 5:26
eyeseetee7-Dec-07 5:26 
GeneralRe: increment by 1 Pin
Ian Shlasko7-Dec-07 5:41
Ian Shlasko7-Dec-07 5:41 
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 6:26
eyeseetee7-Dec-07 6:26 
GeneralRe: increment by 1 Pin
Ian Shlasko7-Dec-07 7:27
Ian Shlasko7-Dec-07 7:27 
GeneralRe: increment by 1 Pin
Ennis Ray Lynch, Jr.7-Dec-07 4:58
Ennis Ray Lynch, Jr.7-Dec-07 4:58 
GeneralRe: increment by 1 Pin
eyeseetee7-Dec-07 5:10
eyeseetee7-Dec-07 5:10 
GeneralYes Pin
Ennis Ray Lynch, Jr.7-Dec-07 5:13
Ennis Ray Lynch, Jr.7-Dec-07 5:13 
GeneralRe: Yes Pin
eyeseetee7-Dec-07 5:18
eyeseetee7-Dec-07 5:18 
GeneralRe: Yes Pin
Ennis Ray Lynch, Jr.7-Dec-07 5:19
Ennis Ray Lynch, Jr.7-Dec-07 5:19 
GeneralRe: Yes Pin
eyeseetee7-Dec-07 5:21
eyeseetee7-Dec-07 5:21 
GeneralRe: Yes Pin
Xmen Real 7-Dec-07 5:54
professional Xmen Real 7-Dec-07 5:54 
GeneralRe: Yes Pin
Guffa7-Dec-07 7:20
Guffa7-Dec-07 7:20 
GeneralHiding a tabsheet Pin
Dewald7-Dec-07 4:38
Dewald7-Dec-07 4:38 
GeneralRe: Hiding a tabsheet Pin
Anthony Mushrow7-Dec-07 6:20
professionalAnthony Mushrow7-Dec-07 6:20 
GeneralSetting focus on new DeckItem [modified] Pin
oracleConvert7-Dec-07 4:24
oracleConvert7-Dec-07 4:24 

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.