Here are the examples of the csharp api class System.Windows.Forms.ComboBox.OnFontChanged(System.EventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
Project: Krypton
Source File: KryptonComboBox.cs
Source File: KryptonComboBox.cs
protected override void OnFontChanged(EventArgs e) { // Working on Windows XP or earlier systems? if (_osMajorVersion < 6) { // Fudge by adding one to the font height, this gives the actual space used by the // combo box control to draw an individual item in the main part of the control ItemHeight = Font.Height + 1; } else { // Vista performs differently depending of the use of themes... if (IsAppThemed) { // Fudge by subtracting 1, which ensure correct sizing of combo box main area ItemHeight = Font.Height - 1; } else { // On under Vista without themes is the font height the actual height used // by the combo box for the space required for drawing the actual item ItemHeight = Font.Height; } } base.OnFontChanged(e); }
0
2. Example
Project: TaskScheduler
Source File: CustomComboBox.cs
Source File: CustomComboBox.cs
protected override void OnFontChanged(EventArgs e) { base.OnFontChanged(e); if (DropDownControl != null) DropDownControl.Font = Font; }
0
3. Example
Project: SharpBoot
Source File: GroupedComboBox.cs
Source File: GroupedComboBox.cs
protected override void OnFontChanged(EventArgs e) { base.OnFontChanged(e); _groupFont = new Font(Font, FontStyle.Bold); }