private void forwardbutton_Click(object sender, EventArgs e) { if(images == null) return; imageindex++; if(imageindex == images.Length) imageindex = images.Length - 1; ShowIndex(imageindex); }