Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
QuestionWindow Focus Pin
dirkwilliams15-Apr-07 16:03
dirkwilliams15-Apr-07 16:03 
AnswerRe: Window Focus Pin
Luc Pattyn15-Apr-07 23:16
sitebuilderLuc Pattyn15-Apr-07 23:16 
QuestionQuestion about detecting mouse click using? Pin
Khoramdin15-Apr-07 15:31
Khoramdin15-Apr-07 15:31 
AnswerRe: Question about detecting mouse click using? Pin
Christian Graus15-Apr-07 16:54
protectorChristian Graus15-Apr-07 16:54 
GeneralRe: Question about detecting mouse click using? Pin
Khoramdin16-Apr-07 6:29
Khoramdin16-Apr-07 6:29 
QuestionmyCommand.SelectCommand.Parameters.Add(new SqlParameter("@State", SqlDbType.NVarChar, 1)); Pin
swjam15-Apr-07 14:09
swjam15-Apr-07 14:09 
AnswerRe: myCommand.SelectCommand.Parameters.Add(new SqlParameter("@State", SqlDbType.NVarChar, 1)); Pin
Christian Graus15-Apr-07 15:19
protectorChristian Graus15-Apr-07 15:19 
QuestionSave Mesh data to a .X file Pin
max2929715-Apr-07 13:06
max2929715-Apr-07 13:06 
AnswerRe: Save Mesh data to a .X file Pin
Judah Gabriel Himango16-Apr-07 10:11
sponsorJudah Gabriel Himango16-Apr-07 10:11 
QuestionHow to read data from external application? Pin
loony123415-Apr-07 12:49
loony123415-Apr-07 12:49 
AnswerRe: How to read data from external application? Pin
Judah Gabriel Himango16-Apr-07 10:16
sponsorJudah Gabriel Himango16-Apr-07 10:16 
GeneralRe: How to read data from external application? Pin
loony123416-Apr-07 13:28
loony123416-Apr-07 13:28 
Questioncrystal reports problem Pin
kifahhk15-Apr-07 12:38
kifahhk15-Apr-07 12:38 
AnswerRe: crystal reports problem Pin
phantanagu15-Apr-07 20:29
phantanagu15-Apr-07 20:29 
QuestionCreating RSS Reader Using New Windows RSS Platform Pin
William Spencer15-Apr-07 12:24
William Spencer15-Apr-07 12:24 
AnswerRe: Creating RSS Reader Using New Windows RSS Platform Pin
Judah Gabriel Himango16-Apr-07 10:18
sponsorJudah Gabriel Himango16-Apr-07 10:18 
QuestionOverload resolution failed in ReportViewer Pin
AndrusM15-Apr-07 12:00
AndrusM15-Apr-07 12:00 
QuestionCannot access disposed object error Pin
AndrusM15-Apr-07 11:55
AndrusM15-Apr-07 11:55 
AnswerRe: Cannot access disposed object error Pin
Luc Pattyn15-Apr-07 13:50
sitebuilderLuc Pattyn15-Apr-07 13:50 
Hi,

I guess the following is happening:

1. continued scrolling: keeping the mouse button down launches several Windows messages
that get processed one after another; if the processing takes longer than the autorepeat
interval, they accumulate, and after you release the mouse the processing will continue
for a while. Probably your processing is too slow. I suggest you add some logging
(with millisecond time resolution) to the mouse down, mouse up, and scroll events.

If this confirms my theory, you should go find what makes your scrolling that slow,
and fix it.

2. disposed: once a KeyPress event is fired, you close the form, causing it (and all
its content) to disappear; if any more events have been queued in the mean time,
they may not find their control any more (such as VScrollBar). This may be a side effect
of problem 1 !

Hope this helps.

Smile | :)


Luc Pattyn

[My Articles]

GeneralRe: Cannot access disposed object error Pin
AndrusM16-Apr-07 4:44
AndrusM16-Apr-07 4:44 
GeneralRe: Cannot access disposed object error Pin
Luc Pattyn16-Apr-07 7:07
sitebuilderLuc Pattyn16-Apr-07 7:07 
GeneralRe: Cannot access disposed object error Pin
AndrusM16-Apr-07 7:48
AndrusM16-Apr-07 7:48 
QuestionGetting Pixel Value Pin
Saikek15-Apr-07 10:27
Saikek15-Apr-07 10:27 
AnswerRe: Getting Pixel Value Pin
Christian Graus15-Apr-07 11:14
protectorChristian Graus15-Apr-07 11:14 
QuestionProblem with ContextMenu? [modified] Pin
Khoramdin15-Apr-07 10:18
Khoramdin15-Apr-07 10:18 

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.