| Using the C1Input Controls > C1Input Controls > C1FontPicker Control Overview > Working with C1FontPicker |
This topic illustrates how to use C1FontPicker for Windows Forms applications. The steps to set up Visual Studio project and customize the application during runtime are as follows:

| VB |
Copy Code
|
|---|---|
Private Sub C1FontPicker1_ValueChanged(sender As Object, e As EventArgs) Handles C1FontPicker1.ValueChanged RichTextBox1.SelectionFont = New Font(DirectCast(sender, C1FontPicker).Value.ToString(), RichTextBox1.SelectionFont.Size, RichTextBox1.SelectionFont.Style) End Sub |
|
| C# |
Copy Code
|
|---|---|
private void c1FontPicker1_ValueChanged(object sender, EventArgs e) { richTextBox1.SelectionFont = new Font(((C1FontPicker)sender).Value.ToString(), richTextBox1.SelectionFont.Size, richTextBox1.SelectionFont.Style); } |
|