Groups | Blog | Home
all groups > vb.net controls > july 2005 >

vb.net controls : RTF



S Shulman
7/10/2005 3:10:31 PM
Hi,

Is there any method to edit the text within the RTF control e.g. allow the
user to select a text and then select from another control the size of the
text

Thank you
Shmuel Shulman
SBS Technologies LTD

S Shulman
7/10/2005 3:55:41 PM
Thanks,
Shmuel



[quoted text, click to view]

Herfried K. Wagner [MVP]
7/10/2005 4:20:28 PM
"S Shulman" <smshulman@hotmail.com> schrieb:
[quoted text, click to view]

\\\
Private Sub Form1_Load( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles MyBase.Load
With Me.ComboBox1
.DropDownStyle = ComboBoxStyle.DropDownList
For i As Integer = 1 To 40
.Items.Add(i.ToString())
Next i
End With
Me.RichTextBox1.HideSelection = False
End Sub

Private Sub ComboBox1_SelectedIndexChanged( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles ComboBox1.SelectedIndexChanged
With Me.RichTextBox1
.SelectionFont = _
New Font( _
.SelectionFont.FontFamily, _
CInt(Me.ComboBox1.SelectedItem) _
)
End With
End Sub
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
AddThis Social Bookmark Button