Other FontBehavior modes allow you to apply one of the system fonts to DevExpress controls. The WindowsFormsSettings.FontBehavior property introduces several modes that help you force the DevExpress and standard controls to use the same font. WindowsFormsSettings.DefaultFont = New ("Arial", 12)Ĭompared to DevExpress controls, standard Windows Forms controls use a different default font. WindowsFormsSettings.LoadApplicationSettings() Public Sub Me_Startup(ByVal sender As Object, ByVal e As StartupEventArgs) Handles Me.Startup WindowsFormsSettings.DefaultFont = new ("Arial", 12) Īpplication.SetCompatibleTextRenderingDefault(false) Once a default font is set, do not change it when the application is running. If you need to change the default font in code, do that prior to running the main application form (see the sample below). We highly recommend that you use the DevExpress Project Settings dialog to change the default font for DevExpress controls.
0 Comments
Leave a Reply. |