代码
//richtextbox可以当容器使用,
PictureBox pb = new PictureBox();
pb.Image
= (new Icon("App.ico")).ToBitmap();
this.richTextBox1.Controls.Add(pb);


///////////////////////////////////

public void InsertImage()
{
bool b = rtb1.ReadOnly;
Image img
= Image.FromFile("sss.bmp");
Clipboard.SetDataObject(img);
rtb1.ReadOnly
= false;
rtb1.Paste(DataFormats.GetFormat(DataFormats.Bitmap));
rtb1.ReadOnly
= b;
}

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

相关文章:

  • 2021-10-30
  • 2022-02-16
  • 2022-12-23
  • 2021-09-24
  • 2021-12-28
  • 2022-01-02
  • 2021-04-20
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2021-08-07
  • 2021-08-08
  • 2021-09-29
  • 2022-12-23
  • 2021-07-14
  • 2021-07-27
相关资源
相似解决方案