private void ShowComments() { try { for (int commentIndex = 0; commentIndex < image.JpegCommentCount; commentIndex++) { jpegComments += image.ReturnJpegComment(commentIndex + 1) + "\r\n"; } if (!String.IsNullOrEmpty(jpegComments)) { JpegCommentsButton.Visible = true; } } catch (ImageXException ex) { MessageBox.Show(ex.Message, Constants.commentsErrorString, MessageBoxButtons.OK, MessageBoxIcon.Error); } }