Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with SQLDataReader and Insert command Pin
Pete O'Hanlon24-Nov-11 22:30
mvePete O'Hanlon24-Nov-11 22:30 
GeneralRe: Problem with SQLDataReader and Insert command Pin
CCodeNewbie24-Nov-11 22:32
CCodeNewbie24-Nov-11 22:32 
GeneralRe: Problem with SQLDataReader and Insert command Pin
Pete O'Hanlon24-Nov-11 22:48
mvePete O'Hanlon24-Nov-11 22:48 
GeneralRe: Problem with SQLDataReader and Insert command Pin
CCodeNewbie24-Nov-11 22:51
CCodeNewbie24-Nov-11 22:51 
GeneralRe: Problem with SQLDataReader and Insert command Pin
CCodeNewbie25-Nov-11 10:51
CCodeNewbie25-Nov-11 10:51 
GeneralRe: Problem with SQLDataReader and Insert command Pin
Pete O'Hanlon30-Nov-11 5:34
mvePete O'Hanlon30-Nov-11 5:34 
GeneralRe: Problem with SQLDataReader and Insert command Pin
CCodeNewbie30-Nov-11 8:55
CCodeNewbie30-Nov-11 8:55 
GeneralRe: Problem with SQLDataReader and Insert command Pin
Pete O'Hanlon30-Nov-11 11:13
mvePete O'Hanlon30-Nov-11 11:13 
You can't use SID because it's an instance variable, but the static method indicates you need to use static variables, so you either need to convert your property and field to static
C#
private static int SID;
public static int mID
or you remove the static from the OnTimedEvent.

Forgive your enemies - it messes with their heads

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


GeneralRe: Problem with SQLDataReader and Insert command Pin
CCodeNewbie30-Nov-11 11:21
CCodeNewbie30-Nov-11 11:21 
GeneralRe: Problem with SQLDataReader and Insert command Pin
Pete O'Hanlon30-Nov-11 11:29
mvePete O'Hanlon30-Nov-11 11:29 
AnswerRe: Problem with SQLDataReader and Insert command Pin
Pete O'Hanlon21-Nov-11 8:48
mvePete O'Hanlon21-Nov-11 8:48 
GeneralRe: Problem with SQLDataReader and Insert command Pin
CCodeNewbie21-Nov-11 21:45
CCodeNewbie21-Nov-11 21:45 
GeneralRe: Problem with SQLDataReader and Insert command Pin
Pete O'Hanlon21-Nov-11 22:01
mvePete O'Hanlon21-Nov-11 22:01 
GeneralRe: Problem with SQLDataReader and Insert command Pin
CCodeNewbie21-Nov-11 22:53
CCodeNewbie21-Nov-11 22:53 
QuestionDeploying C# Application with Crystal report Pin
akosidandan19-Nov-11 23:51
akosidandan19-Nov-11 23:51 
AnswerRe: Deploying C# Application with Crystal report Pin
akosidandan20-Nov-11 1:39
akosidandan20-Nov-11 1:39 
AnswerRe: Deploying C# Application with Crystal report Pin
thatraja20-Nov-11 2:56
professionalthatraja20-Nov-11 2:56 
Questiondata presentation Pin
Tom Paronis19-Nov-11 10:14
Tom Paronis19-Nov-11 10:14 
AnswerRe: data presentation Pin
PIEBALDconsult20-Nov-11 2:55
mvePIEBALDconsult20-Nov-11 2:55 
QuestionSQL Compact v3.5 ComboBox Not Populating from Query Pin
namelkcip19-Nov-11 8:16
namelkcip19-Nov-11 8:16 
QuestionSOS Something strange with memory Pin
Member 807559118-Nov-11 21:48
Member 807559118-Nov-11 21:48 
AnswerRe: SOS Something strange with memory Pin
OriginalGriff18-Nov-11 22:01
mveOriginalGriff18-Nov-11 22:01 
GeneralRe: SOS Something strange with memory Pin
Member 807559119-Nov-11 0:09
Member 807559119-Nov-11 0:09 
AnswerRe: SOS Something strange with memory Pin
Luc Pattyn19-Nov-11 7:28
sitebuilderLuc Pattyn19-Nov-11 7:28 
GeneralRe: SOS Something strange with memory Pin
Member 807559119-Nov-11 20:52
Member 807559119-Nov-11 20:52 

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.