Example #1
0
        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);
            }
        }
Example #2
0
 void toolStripMenuItem5_Click(object sender, EventArgs e)
 {
     try
     {
         ImageForm form = new ImageForm(this.imageOnRightClick);
         form.Show();
     }
     catch (Exception ee)
     {
         MessageBox.Show(ee.Message);
     }
 }
Example #3
0
 void toolStripMenuItem5_Click(object sender, EventArgs e)
 {
     try
     {
         ImageForm form = new ImageForm(this.imageOnRightClick);
         form.Show();
     }
     catch (Exception ee)
     {
         MessageBox.Show(ee.Message);
     }
 }
Example #4
0
        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);
            }
        }