Ping: DataGridView ScrollBar Click Event

  • Thread starter Rex the Strange
  • Start date
R

Rex the Strange

Still looking for an answer, please:

How can I hook into the click event of the directional buttons of a
scrollbar on the DataGridView component? I tried this:

public class ScrollDataGrid: DataGridView {
new public ScrollBar VerticalScrollBar {
get { return base.VerticalScrollBar; }
}// ScrollBar;
}// ScrollDataGrid;


and this...


ScrollDataGrid scroll_grid = (data_grid as ScrollDataGrid);
scroll_grid.VerticalScrollBar.MouseDown += scroll_grid_mousedown;


and, surprise, surprise, it didn't work. I'm sure you can get the idea
of what I'm trying to accomplish, here. Is it possible to do it this
way or do I have to actually create a new component (god, I hope not).


tia,
rts
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top