|
Adding styles to the font of the selected text of a RichTextBox
|
Total Hit (2152) |
«Code LangId=2»' Add a style to the selection of a RichTextBox,
' without deleting the current styles that may be already
' present in the selection or in portions of it
'
' Example: AddFontStyle(richTextBox1, FontStyle.Bold)
Public Sub AddFontStyle(ByVal rtb As RichTextBox, _
ByVal styl
....Read More |
Rating
|
|
|
|
InsertImageIntoRtb - Inserting an image into a RichTextBox
|
Total Hit (4980) |
«Code LangId=2»
' Insert an image into a RichTextBox, in the current position
'
' This version takes in input the target RichTextBox and the path of the image
' to insert
' Example: InsertImageIntoRtb(RichTextBox1, "C:\test.jpg")
Sub InsertImageIntoRtb(ByVal rtb As RichTextBox, ByVal imgPat
....Read More |
Rating
|
|
|
Pasting the text in the Clipboard into a RichTextBox
|
Total Hit (3560) |
«Code LangId=2»' Paste the text currently in the Clipboard into the specified RichTextBox
' Example: PasteIntoRichTextBox (richTextBox1)
Public Sub PasteIntoRichTextBox(ByVal rtb As RichTextBox)
' get the data currently in the Clipboard
Dim data As IDataObject = Clipboard.GetDataObject
....Read More |
Rating
|
|
|