Profile Picture

NDataGridView scrollbar painting issue

Posted By Brad Swearingen 12 Years Ago
Author
Message
Brad Swearingen
Posted 12 Years Ago
View Quick Profile
Forum Guru

Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 53, Visits: 3

I'm using the NDataGridView and have noticed that the horizontal and vertical scrollbars sometimes do not draw themselves using the current skin/scheme.  This is easily reproduced by clicking and dragging the scrollbar thumb to scroll and letting it go.  A subsequent mouse move over the scrollbar will cause it to paint back to the current skin/scheme.  The NListView doesn't have this problem that I can tell.

I added some code to get the grid scrollbars and look for the scroll events on it.  Setting a 250 msec timer during this event on which I invalidate the scrollbar helps but doesn't completely fix all scenarios.

I was wondering if there might be a better way to work around this issue today?






Similar Topics


Reading This Topic