private void hScrollBar_Change(int newScrollValue) { AttachImagesToViewer(IM.imageList, newScrollValue); hScrollBar.Maximum = IM.imageList.Count-1; }