Public Class SongShow Private Sub RichTextBox1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles RichTextBox1.KeyPress End Sub Private Sub SongShow_Load(sender As Object, e As EventArgs) Handles MyBase.Load, RichTextBox1.VisibleChanged 'TODO: This line of code loads data into the 'SongDataSet.MAS_SONGS' table. You can move, or remove it, as needed. Me.MAS_SONGSTableAdapter.Fill(Me.SongDataSet.MAS_SONGS) End Sub Private Sub SongShow_KeyDown(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown If e.KeyCode = Keys.Escape Then Me.Close() End If End Sub Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim colors As DialogResult colors = ColorDialog1.ShowDialog If colors = Windows.Forms.DialogResult.OK Then RichTextBox1.ForeColor = ColorDialog1.Color End If End Sub Private Sub RichTextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles RichTextBox1.KeyDown If e.KeyCode = Keys.Tab Then RichTextBox2.Show() RichTextBox1.Visible = False RichTextBox2.Visible = True End If End Sub Private Sub RichTextBox2_KeyDown(sender As Object, e As KeyEventArgs) Handles RichTextBox2.KeyDown If e.KeyCode = Keys.Tab Then RichTextBox1.Show() RichTextBox2.Visible = False RichTextBox1.Visible = True End If End Sub Private Sub RichTextBox1_TextChanged(sender As Object, e As EventArgs) Handles RichTextBox1.TextChanged End Sub End Class
RichTextBox1.SelectionFont = New Font("Tahoma", 20)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)