Speeding up the drawing of forms and their controls...

  • Thread starter Thread starter Neil Kiser
  • Start date Start date
N

Neil Kiser

I was under the impression that there was a way in which I could
create a populated control off-screen and then quickly show it (by
this I mean that no time is saved in the end, just that the user sees
an 'instantaneous' display when it does appear).

I have a custom control that I create and initialize off-screen (I
just set the draing point to somethign not visible) and then I changed
the drawing point to be 1,1, which is where I wnat it. The net result
is no apparent increase in performance on the drawing. I still see
individual button controls being drawn one after the other.

I'm thinking I may be barking up the wrong tree. Any advice would be
greatly appreciated.

Thanks,
-Neil K.
 
That would work with user controls but not with composite controls. SInce he
mentioned buttons, I assume his is a composite one.
 
Yes, I am using composite controls. I have followed the guidelines
set forth in an on-line article entitled ~how to improve performance
on forms loading, but I was hoping that if I were willing to take the
hit early and have a prolonged splash screen, that I could get all of
my forms loaded up into memory, with their data, and switch between
them much more quickly than I am witnessing now. I have a Pocket
Outlook type display with the buttons across the screen with '#abc',
'cde', 'fgh', etc. and I can see the buttons being individually
drawn. I was hoping there was some solution for speeding up this
process off-screen. My naivety, I presume, in thinking that was
possible. No matter where you assemble it, I guess, it still has to
be drawn on the main screen.
 
Yes, the only way to speed it up as Alex points out is a user control that
is custom-drawn using an offscreen bitmap
 
Back
Top