SnippetBank
Net
C# - Insert Image Into RichTextBox
This snippet inserts an image into a RichTextBox control.
Image
img =
Image
.FromFile
(
"image.jpg"
)
;
Clipboard
.SetImage
(
img
)
;
richTextBox1.SelectionStart = 0;
richTextBox1.Paste
(
)
;
Clipboard
.Clear
(
)
;
No comments:
Post a Comment
Newer Post
Older Post
Home
No comments:
Post a Comment