Private Sub BtnColourfont_Click(sender As Object, e As EventArgs) Handles BtnColourfont.Click Dim simpleSound As New SoundPlayer("c:\Windows\Media\clickPolly.wav") simpleSound.Play() ColorDialog1.Color = TextBox1.ForeColor If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then End If RichTextBox1.ForeColor = ColorDialog1.Color setcolor = SelectedText If RichTextBox1.SelectionLength > 0 Then End If Clipboard.SetText(RichTextBox1.SelectedText) End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)