private void HScrolled(GLBaseControl c, GLScrollBar.ScrollEventArgs e)
 {
     scrollpanel.HorzScrollPos = horzscrollbar.Value;
 }
 private void VScrolled(GLBaseControl c, GLScrollBar.ScrollEventArgs e)
 {
     scrollpanel.VertScrollPos = vertscrollbar.Value;
 }