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

C#

 
AnswerRe: I do not understand why the error ! :S Pin
Not Active1-Jun-11 2:59
mentorNot Active1-Jun-11 2:59 
GeneralRe: I do not understand why the error ! :S Pin
ismail201-Jun-11 3:05
ismail201-Jun-11 3:05 
GeneralRe: I do not understand why the error ! :S Pin
Not Active1-Jun-11 3:21
mentorNot Active1-Jun-11 3:21 
GeneralRe: I do not understand why the error ! :S Pin
ismail201-Jun-11 3:29
ismail201-Jun-11 3:29 
GeneralRe: I do not understand why the error ! :S Pin
Not Active1-Jun-11 3:32
mentorNot Active1-Jun-11 3:32 
GeneralRe: I do not understand why the error ! :S Pin
ismail201-Jun-11 3:34
ismail201-Jun-11 3:34 
GeneralRe: I do not understand why the error ! :S Pin
Not Active1-Jun-11 3:38
mentorNot Active1-Jun-11 3:38 
GeneralRe: I do not understand why the error ! :S Pin
BobJanova1-Jun-11 4:12
BobJanova1-Jun-11 4:12 
AnswerRe: I do not understand why the error ! :S Pin
Pete O'Hanlon1-Jun-11 3:25
mvePete O'Hanlon1-Jun-11 3:25 
GeneralRe: I do not understand why the error ! :S Pin
ismail201-Jun-11 3:33
ismail201-Jun-11 3:33 
GeneralRe: I do not understand why the error ! :S Pin
Not Active1-Jun-11 3:37
mentorNot Active1-Jun-11 3:37 
GeneralRe: I do not understand why the error ! :S Pin
ismail201-Jun-11 3:44
ismail201-Jun-11 3:44 
GeneralRe: I do not understand why the error ! :S PinPopular
Pete O'Hanlon1-Jun-11 3:54
mvePete O'Hanlon1-Jun-11 3:54 
QuestionLogical issue with a recursive function call Pin
John-ph1-Jun-11 2:23
John-ph1-Jun-11 2:23 
AnswerRe: Logical issue with a recursive function call Pin
dasblinkenlight1-Jun-11 5:37
dasblinkenlight1-Jun-11 5:37 
QuestionMemory expensive rubber band selection? Pin
Chesnokov Yuriy31-May-11 23:10
professionalChesnokov Yuriy31-May-11 23:10 
AnswerRe: Memory expensive rubber band selection? Pin
BobJanova31-May-11 23:36
BobJanova31-May-11 23:36 
AnswerRe: Memory expensive rubber band selection? Pin
Chesnokov Yuriy1-Jun-11 0:42
professionalChesnokov Yuriy1-Jun-11 0:42 
AnswerRe: Memory expensive rubber band selection? Pin
Luc Pattyn1-Jun-11 0:42
sitebuilderLuc Pattyn1-Jun-11 0:42 
GeneralRe: Memory expensive rubber band selection? Pin
Chesnokov Yuriy1-Jun-11 0:56
professionalChesnokov Yuriy1-Jun-11 0:56 
AnswerRe: Memory expensive rubber band selection? Pin
Eddy Vluggen1-Jun-11 1:00
professionalEddy Vluggen1-Jun-11 1:00 
GeneralRe: Memory expensive rubber band selection? Pin
BobJanova1-Jun-11 1:24
BobJanova1-Jun-11 1:24 
GeneralRe: Memory expensive rubber band selection? Pin
Pete O'Hanlon1-Jun-11 1:41
mvePete O'Hanlon1-Jun-11 1:41 
AnswerRe: Memory expensive rubber band selection? Pin
Luc Pattyn1-Jun-11 1:41
sitebuilderLuc Pattyn1-Jun-11 1:41 
Chesnokov Yuriy wrote:
Why the picture box update is very slow if I keep drawing on every mouse move event?

Because the MouseMove events fire at high frequency (allowing you to track well assuming your handler is fast), possibly 50Hz or higher (which is too high for the human eye to notice), because Graphics objects are expensive, and finally because PictureBoxes are stupid (I wouldn't be surprised if the fact you change the image just causes another mouse move event).


You want to run such things continuously? I would experiment with keeping the two Graphics and the Bitmap around as class members, i.e. not create new objects at all, just keep using them over and over.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Please use <PRE> tags for code snippets, they improve readability.
CP Vanity has been updated to V2.3

QuestionRe: Memory expensive rubber band selection? Pin
Chesnokov Yuriy1-Jun-11 1:56
professionalChesnokov Yuriy1-Jun-11 1:56 

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.