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;
}
 
richtextbox中插入图片

相关文章:

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