void toolStripMenuItem5_Click(object sender, EventArgs e) { try { ImageForm form = new ImageForm(this.imageOnRightClick); form.Show(); } catch (Exception ee) { MessageBox.Show(ee.Message); } }
void ChatBox_DoubleClick(object sender, EventArgs arg) { try { if (!this.popoutImageWhenDoubleClick) { return; } MouseEventArgs e = arg as MouseEventArgs; if (e == null) { return; } GifBox box = this.HitTest(e.Location, true); if (box == null) { return; } ImageForm form = new ImageForm(box.Image); form.Show(); } catch (Exception ee) { MessageBox.Show(ee.Message); } }