Articles in this section

How can I include a custom font to the FontListBox dynamically?

A Custom font can be included in the FontListBox dynamically. The font source can be set to a path from the system. The following code shows how to browse the font and include it in the FontListBox.

[C#]

FolderBrowser folderBrowser = new FolderBrowser();
if (folderBrowser.ShowDialog(this).Value) 
    pathTextBox.Text = folderBrowser.SelectedDirectory + @" \ "; 
fontListBox.FontsSource = pathTextBox.Text;

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied