如何在richBox中插入一张图片?

jinzhao 2002-05-19 10:55:44
VB编写的程序中,如何向richBox控件中加入一张图片?
...全文
77 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
chengxf 2002-05-19
  • 打赏
  • 举报
回复
同意楼上的
footballboy 2002-05-19
  • 打赏
  • 举报
回复
Private Sub Command1_Click()
RichTextBox1.Text = "这是第一行的文字,下一行将插入一行文字"
RichTextBox1.SelStart = Len(RichTextBox1.Text)
RichTextBox1.SelText = vbCrLf + "这是第二行的文字,下一行将插入一幅图像"
RichTextBox1.SelStart = Len(RichTextBox1.Text)
RichTextBox1.SelText = vbCrLf
RichTextBox1.OLEObjects.Add , , "c:\windows\Bubbles.bmp"
End Sub
jinjun001 2002-05-19
  • 打赏
  • 举报
回复
Property OLEObjects As OLEObjects
read-only
Member of RichTextLib.RichTextBox
The RichTextBox control enables you to add insertable objects to an RTF file. Insertable objects are represented by the OLEObject.

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧