Advertisement
smashapps

Using RichtextBox Selection

May 14th, 2011
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.     Private Sub FontToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FontToolStripMenuItem.Click
  4.         FontDialog1.ShowDialog()
  5.         RichTextBox1.SelectionFont = FontDialog1.Font
  6.     End Sub
  7.  
  8.     Private Sub ColorToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ColorToolStripMenuItem.Click
  9.         ColorDialog1.ShowDialog()
  10.         RichTextBox1.SelectionColor = ColorDialog1.Color
  11.     End Sub
  12. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement