Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
GeneralRe: TextBoxes on GUI Pin
dealon27-May-08 20:37
dealon27-May-08 20:37 
GeneralRe: TextBoxes on GUI Pin
Blubbo28-May-08 3:34
Blubbo28-May-08 3:34 
GeneralRe: TextBoxes on GUI Pin
DaveyM6928-May-08 4:19
professionalDaveyM6928-May-08 4:19 
AnswerRe: TextBoxes on GUI Pin
darkelv27-May-08 18:02
darkelv27-May-08 18:02 
GeneralRe: TextBoxes on GUI Pin
Blubbo28-May-08 3:38
Blubbo28-May-08 3:38 
GeneralRe: TextBoxes on GUI Pin
darkelv28-May-08 5:51
darkelv28-May-08 5:51 
AnswerRe: TextBoxes on GUI Pin
V.27-May-08 20:14
professionalV.27-May-08 20:14 
QuestionImprove Custom Control Performance by Storing Bitmap of Control? Pin
User 1278227-May-08 14:03
User 1278227-May-08 14:03 
I have a custom control which produces a fairly intricate graph that takes some time to initally draw. The user uses the mouse to draw a selection rectangle on part of the image to be zoomed in on. This part of the code works fine, but the drawing is sluggish.

Right now, as the user clicks and drags, the graph is drawn and the rectangle is then drawn over that, so each time the user moves, the image must be redrawn. I know part of the paint message is the region that was invalidated, but its too complicated to redraw just a portion.

Is it possible to store the control image as a bitmap after drawing the first time, then whenever the mouse moves, replace the image with the bitmap stored in memory and draw my new selection rectangle? Is this a good approach, and if so, how do I get and set the control image? If this isn't a good approach, what is a better one?

Thanks,
Aaron

modified 12-Jul-20 21:01pm.

AnswerRe: Improve Custom Control Performance by Storing Bitmap of Control? Pin
Christian Graus27-May-08 14:27
protectorChristian Graus27-May-08 14:27 
GeneralRe: Improve Custom Control Performance by Storing Bitmap of Control? Pin
User 1278227-May-08 15:14
User 1278227-May-08 15:14 
QuestionDataSet.Clear problem Pin
hdv21227-May-08 11:10
hdv21227-May-08 11:10 
AnswerRe: DataSet.Clear problem Pin
Gareth H27-May-08 11:16
Gareth H27-May-08 11:16 
AnswerRe: DataSet.Clear problem Pin
NK728-May-08 21:16
NK728-May-08 21:16 
QuestionA very unhappy System.Diagnostics.Debug.WriteLine Pin
RB@Emphasys27-May-08 10:33
RB@Emphasys27-May-08 10:33 
AnswerRe: A very unhappy System.Diagnostics.Debug.WriteLine Pin
Gareth H27-May-08 11:04
Gareth H27-May-08 11:04 
GeneralRe: A very unhappy System.Diagnostics.Debug.WriteLine Pin
RB@Emphasys27-May-08 11:21
RB@Emphasys27-May-08 11:21 
AnswerRe: A very unhappy System.Diagnostics.Debug.WriteLine Pin
Peter Josefsson Sweden27-May-08 15:02
Peter Josefsson Sweden27-May-08 15:02 
GeneralRe: A very unhappy System.Diagnostics.Debug.WriteLine Pin
RB@Emphasys28-May-08 6:32
RB@Emphasys28-May-08 6:32 
QuestionNewbie - Mouse Events Handling problem Pin
gborges27-May-08 10:29
gborges27-May-08 10:29 
QuestionA large NotifyIcon Size Pin
Adel Khayata27-May-08 10:06
Adel Khayata27-May-08 10:06 
AnswerRe: A large NotifyIcon Size Pin
leppie27-May-08 21:04
leppie27-May-08 21:04 
AnswerRe: A large NotifyIcon Size Pin
benjymous27-May-08 22:45
benjymous27-May-08 22:45 
AnswerRe: A large NotifyIcon Size Pin
Adel Khayata28-May-08 4:33
Adel Khayata28-May-08 4:33 
QuestionSend keystrokes Pin
xax27-May-08 9:40
xax27-May-08 9:40 
AnswerRe: Send keystrokes Pin
Judah Gabriel Himango27-May-08 12:13
sponsorJudah Gabriel Himango27-May-08 12:13 

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.