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

C#

 
AnswerRe: Grab a screenshot and send it via http Pin
Luc Pattyn19-Jun-12 8:04
sitebuilderLuc Pattyn19-Jun-12 8:04 
AnswerRe: Grab a screenshot and send it via http Pin
Eddy Vluggen19-Jun-12 8:58
professionalEddy Vluggen19-Jun-12 8:58 
GeneralRe: Grab a screenshot and send it via http Pin
Luc Pattyn19-Jun-12 9:06
sitebuilderLuc Pattyn19-Jun-12 9:06 
QuestionC# How do I know if a row is locked in the database. Pin
UBX19-Jun-12 4:59
UBX19-Jun-12 4:59 
AnswerRe: C# How do I know if a row is locked in the database. Pin
Dave Kreskowiak19-Jun-12 5:14
mveDave Kreskowiak19-Jun-12 5:14 
GeneralRe: C# How do I know if a row is locked in the database. Pin
UBX19-Jun-12 5:19
UBX19-Jun-12 5:19 
AnswerRe: C# How do I know if a row is locked in the database. Pin
PIEBALDconsult19-Jun-12 5:18
mvePIEBALDconsult19-Jun-12 5:18 
QuestionLogging all mouse clicks in an application Pin
Dewald19-Jun-12 2:54
Dewald19-Jun-12 2:54 
I have an interesting requirement and was wondering if anyone might be able to point me in a direction that could get me started.

I've developed an application that is used on many workstations in the company and all access the same database. From time to time I see little issues in the DB that I can't figure out how a user might have managed to make the particular change. It might be a bug in my code but it's such a difficult issue to debug as I usually can't even replicate the problem.

So I was wondering if it would be possible to write some or other function that is called every time the user clicks on any control on the form. This procedure then stores the name of the control, the date and time and perhaps even the coordinates of the click (or something like that) to a List which can then either be written to a local log file or to some table in the DB. This way I'd be able to see exactly the sequence of clicks that preceded a certain change in the DB.

The problem is, the application is huge and I don't want to go add a line of code that calls this function at the start of every OnClick() event handler. Is there a way I could have my function called for every click that happens on any control in any form in the application before the relevant OnClick() event handler is called?

Any ideas on alternative approaches that might help me track the users' mouse clicks would also be very welcome.
AnswerRe: Logging all mouse clicks in an application Pin
Eddy Vluggen19-Jun-12 3:19
professionalEddy Vluggen19-Jun-12 3:19 
GeneralRe: Logging all mouse clicks in an application Pin
Dewald19-Jun-12 3:31
Dewald19-Jun-12 3:31 
GeneralRe: Logging all mouse clicks in an application Pin
Eddy Vluggen19-Jun-12 8:44
professionalEddy Vluggen19-Jun-12 8:44 
GeneralRe: Logging all mouse clicks in an application Pin
BobJanova20-Jun-12 3:16
BobJanova20-Jun-12 3:16 
GeneralRe: Logging all mouse clicks in an application Pin
Eddy Vluggen20-Jun-12 3:23
professionalEddy Vluggen20-Jun-12 3:23 
QuestionRdlc report Pin
sonumanwal18-Jun-12 20:40
sonumanwal18-Jun-12 20:40 
Questionhow to get current application windows title? Pin
a.fatemeh18-Jun-12 11:08
a.fatemeh18-Jun-12 11:08 
AnswerRe: how to get current application windows title? PinPopular
DaveyM6918-Jun-12 11:45
professionalDaveyM6918-Jun-12 11:45 
QuestionDebugging c# code called from a c++ binary exe Pin
bonosa18-Jun-12 7:48
bonosa18-Jun-12 7:48 
AnswerRe: Debugging c# code called from a c++ binary exe Pin
lewax0018-Jun-12 8:39
lewax0018-Jun-12 8:39 
GeneralRe: Debugging c# code called from a c++ binary exe Pin
bonosa19-Jun-12 4:29
bonosa19-Jun-12 4:29 
AnswerRe: Debugging c# code called from a c++ binary exe Pin
Bernhard Hiller18-Jun-12 21:58
Bernhard Hiller18-Jun-12 21:58 
GeneralRe: Debugging c# code called from a c++ binary exe Pin
bonosa19-Jun-12 4:32
bonosa19-Jun-12 4:32 
GeneralRe: Debugging c# code called from a c++ binary exe Pin
Dave Kreskowiak19-Jun-12 4:59
mveDave Kreskowiak19-Jun-12 4:59 
QuestionDisplayFormat Question Pin
Jassim Rahma18-Jun-12 6:39
Jassim Rahma18-Jun-12 6:39 
AnswerRe: DisplayFormat Question Pin
Sandeep Mewara18-Jun-12 6:50
mveSandeep Mewara18-Jun-12 6:50 
GeneralRe: DisplayFormat Question Pin
Jassim Rahma18-Jun-12 7:04
Jassim Rahma18-Jun-12 7:04 

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.