M
Mark
Hello all -
I'm creating an application that uses a datagridview control. My
development environment is an HP Laptop with a NVIDIA Geforce 4 440 Go
64M.
While using this object, a queer effect occurs where, if you just let
the application sit idle (usually within a minute), the gridlines and
border of the datagridview control will be redrawn over the form.
The exact position of the lines appears to be where the lines SHOULD be
drawn if the form was at (0,0)--it doesn't seem to be transposing the
positions relative to the form location.
The form_paint event is being raised, but I'm not sure why; if I am
using the application normally, the datagridview is constantly being
repainted and this problem doesn't appear. It only appears when the
application is sitting idly.
After these offset gridlines are on the form, they stay on the form
until a repaint is forced (by invalidating the control, or by pulling
the window off the screen's boundaries and pulling it back in.)
I can't figure out WHY this is happening.
I've checked out the event arg's graphic property's members, but
nothing seems to have changed between the original values and the
values of the graphic property when this error occurs.
I've also tried flushing the GDI cache, but that doesn't work either.
I can't tell if these are NEW lines, or lines that are somehow in an
uncleared buffer...
Any help, or even a push in the right direction, would be greatly
appreciated.
Thanks,
-M
I'm creating an application that uses a datagridview control. My
development environment is an HP Laptop with a NVIDIA Geforce 4 440 Go
64M.
While using this object, a queer effect occurs where, if you just let
the application sit idle (usually within a minute), the gridlines and
border of the datagridview control will be redrawn over the form.
The exact position of the lines appears to be where the lines SHOULD be
drawn if the form was at (0,0)--it doesn't seem to be transposing the
positions relative to the form location.
The form_paint event is being raised, but I'm not sure why; if I am
using the application normally, the datagridview is constantly being
repainted and this problem doesn't appear. It only appears when the
application is sitting idly.
After these offset gridlines are on the form, they stay on the form
until a repaint is forced (by invalidating the control, or by pulling
the window off the screen's boundaries and pulling it back in.)
I can't figure out WHY this is happening.
I've checked out the event arg's graphic property's members, but
nothing seems to have changed between the original values and the
values of the graphic property when this error occurs.
I've also tried flushing the GDI cache, but that doesn't work either.
I can't tell if these are NEW lines, or lines that are somehow in an
uncleared buffer...
Any help, or even a push in the right direction, would be greatly
appreciated.
Thanks,
-M