Пример #1
0
        private void toolStripButtonPicture_Click(object sender, EventArgs e)
        {
            if (Updating)
            {
                return;
            }
            frmAddImage f = new frmAddImage(_ImagUploadUrl);

            f.OnImageUpdate = this.OnLocalImageUpdate;
            f._ReturnValue  = insertImage;
            f.ShowDialog();
            f.Dispose();
        }
Пример #2
0
        private void toolStripButtonPicture_Click(object sender, EventArgs e)
        {
            if (Updating)
            {
                return;
            }
            frmAddImage f = new frmAddImage(_ImagUploadUrl);

            f.OnImageUpdate = this.OnLocalImageUpdate;
            f._ReturnValue  = insertImage;
            f.ShowDialog();
            f.Dispose();
            String src = "http://www.people.com.cn/h/pic/20140918/69/4985902989970457161.jpg";
            Object obj = "<div><img src='" + src + "' style='width:100px; height:100px;'></div>";

            webBrowserBody.Document.ExecCommand("inserthtml", false, obj);
        }