111,126
社区成员
发帖
与我相关
我的任务
分享
public OrderPayManage()
{
InitializeComponent();
foreach (Control controls in groupbox.Controls)
{
if (controls is VScrollBar) continue;
controls.Tag = controls.Location.Y;
}
}
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
foreach (Control controls in groupbox.Controls)
{
if (controls is VScrollBar) continue;
controls.Location = new Point(controls.Location.X, (int)controls.Tag - e.NewValue);
}
}