• c#复制图片到粘贴板


            string fielN;
            private void button1_Click(object sender, EventArgs e) {
                OpenFileDialog saveFileDialog1 = new OpenFileDialog();
                saveFileDialog1.Filter = "JPG files(*.JPG)|*.JPG|All files(*.*)|*.*";
                saveFileDialog1.RestoreDirectory = true;
                //saveFileDialog1.FileName = DefaultFileName;
                fielN  = string.Empty;
                if (saveFileDialog1.ShowDialog() == DialogResult.OK) {
                    //获得文件路径
                    fielN = saveFileDialog1.FileName.ToString();
                    this.pictureBox1.Image = Image.FromFile(fielN);
                }
            }
    
            private void button2_Click(object sender, EventArgs e) {
                //string file = @"C:" + Guid.NewGuid().ToString("N") + ".JPG";
                //this.pictureBox1.Image.Save(fielN);
                Image img = Image.FromFile(fielN);
                Clipboard.SetImage(img);
            }    
    

      C#RichTextBox实现(复制, 剪切,粘贴,全选)

    http://blog.csdn.net/foart/article/details/6851669

    c# 图片复制、粘贴、打开、保存、取一小块图、抓屏截图

    http://blog.sina.com.cn/s/blog_4b3485000100u0qd.html

    QQ输入框能不能接受,那就不知道了,Word Excel 等可以这样直接设置图文并茂的内容

    http://bbs.csdn.net/topics/390482579

    winform 中向richtextbox插入图片

    http://www.cnblogs.com/zhangjidong/archive/2005/06/16/175536.html

    Setting HTML and plain text formatting to clipboard

    https://theartofdev.com/2012/11/11/setting-html-and-plain-text-formatting-to-clipboard/

    探讨如何利用C#登录QQ邮箱进行群邮件的发送

    http://www.oschina.net/question/565065_66047

    http://www.cnblogs.com/wuhuacong/archive/2011/01/18/1937329.html

    C# Dictionary用法总结

    http://www.cnblogs.com/linlf03/archive/2011/12/09/2282574.html

    textbox光标定位与字符插入

    http://blog.csdn.net/u013139930/article/details/52513960

    SendKeys.Send()的使用

    http://blog.sina.com.cn/s/blog_8c804f6d0100wi57.html

    C#获取当前光标位置的方法收集

    http://www.sowsoy.com/topics-533.html

    跟大家分享一下directUI的心得。

    http://bbs.csdn.net/topics/340239295?list=lz

  • 相关阅读:
    (一二二)核心动画进阶
    1089. Insert or Merge (25)
    (一二一)核心动画基础
    (一二〇)CALayer的一些特性
    (一一九)通过CALayer实现阴影、圆角、边框和3D变换
    1086. Tree Traversals Again (25)
    POJ 2610:Dog & Gopher
    模拟内存分配(链表实现)
    圣诞树后能找到我的记忆
    YTU 2797: 复仇者联盟之关灯
  • 原文地址:https://www.cnblogs.com/as3lib/p/6262719.html
Copyright © 2020-2023  润新知