I've got an image viewer displaying a multipage PDF. I need to move the pages up or down in the document using a context menu. Moving them up in the image collection works fine, down not so much. I'm sure I have a simple mistake in my code here. Does anyone see the issue?
You have the problem with the moveDownToolStripMenuItem_Click method because your code has logical mistake. In your code you are trying to insert element with index "curIndex" into position "curIndex + 1" and this means that you are trying to insert element after itself - this action will not change order of images in image collection.
Here is correct code for moveDownToolStripMenuItem_Click method: