|
|
|
|
InputBox - A .NET replacement for this VB6 function
|
Total Hit (3688) |
«Code LangId=2»' Create an InputBox like the one of VB6. You can define the dialog's title,
' question and default value.
' Example: MessageBox.Show(InputDialog.InputBox("Type your name:", "Test",
' "Marco"))
Public Class InputDialog
Inherits System.Windows.Forms.Form
#Region " Windo
....Read More |
Rating
|
|
|
InsertImageIntoRtb - Inserting an image into a RichTextBox
|
Total Hit (4982) |
«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 (3563) |
«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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ensuring that a style is supported by a font family
|
Total Hit (2679) |
«Code LangId=2»' Not all fonts support the same styles. This function takes in
' input a font family and a font style, and returns a font style
' which is safe for that particular font family, by removing
' the styles that are not supported
'
' Example:
' GetSafeStyleForFontFamily(richTextB
....Read More |
Rating
|
|
|