0

hi,

I have written a win application program. In my application i have 5
picture boxes with mouse enter, mouse leave, mouse down, mouse up and
mouse click events applied. When each of these events occur I set the
image property. actually i have simulated 5 graphical buttons.
but they are very slow. when I move the mouse quickly over them it
seems that the application misses the events... and so the images of
picture boxes do not change. but such this problem doesn't occur in
delphi... Does anybody know how to improve speed of such events...
Or maybe I make mistake and it's result of something else..:rolleyes:

-Soheil

3
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by Lord Soth
0

Threading..
Try to call function in event instead execute some codes in the event itself and let the event start new thread and call the function within

0

Hi,

The creation af a thread or calling a function from the event won't help at all because the creation of a new thread object and the thread it self on OS plus the necessary context switching to the workerThread are all overhead but no help. I would suggest increasing the applications process priority, not using mouse click event (mouse up will do) and call Application.DoEvents() at the end of your event codes.

Loren Soth

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.