我希望制作比我想用它滚动的面板宽度更长的自定义水平滚动条。如何连接它?
ScrollBar hScrollBar = new HScrollBar();
hScrollBar.Dock = DockStyle.Fill;
ScrollBar.Scroll += new ScrollEventHandler(hScrollBar_Scroll);
splitContainer2.Panel2.Controls.Add(hScrollBar);
void hScrollBar_Scroll(object sender, ScrollEventArgs e)
{
?
}