B
Benoit Martin
I had to draw my own control because I couldn't find any control doing what
I wanted it to do. This control has a grid that I need to have control over.
To do that, I draw each line of the grid using a 1pixel pictureBox. I also
need "boxes" to be placed within that grid depending on data pulled from my
dataset. I also used pictureBox controls for that. All those components that
I use to draw my control are added to the controls collection of the parent
control. The problem is that when I do a myControl.controls.clear() to clear
the control before I redraw it, I can see each line and each box being
deleted one by one and that happens pretty slowly. I didn't have a chance to
test on other computers but the computer I'm using is decent (1Ghz with
512Mb of RAM).
Am I having the wrong approach to solve my problems or is there something I
can do to speed up the clear method?
Thanks
B.
I wanted it to do. This control has a grid that I need to have control over.
To do that, I draw each line of the grid using a 1pixel pictureBox. I also
need "boxes" to be placed within that grid depending on data pulled from my
dataset. I also used pictureBox controls for that. All those components that
I use to draw my control are added to the controls collection of the parent
control. The problem is that when I do a myControl.controls.clear() to clear
the control before I redraw it, I can see each line and each box being
deleted one by one and that happens pretty slowly. I didn't have a chance to
test on other computers but the computer I'm using is decent (1Ghz with
512Mb of RAM).
Am I having the wrong approach to solve my problems or is there something I
can do to speed up the clear method?
Thanks
B.