-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathExtendedForm.cs
More file actions
36 lines (31 loc) · 792 Bytes
/
ExtendedForm.cs
File metadata and controls
36 lines (31 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace Menees.Windows.Forms
{
#region Using Directives
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
#endregion
/// <summary>
/// Extends the base Form class to use the default system font at design-time and run-time.
/// </summary>
public partial class ExtendedForm : Form
{
#region Constructors
/// <summary>
/// Creates a new instance.
/// </summary>
public ExtendedForm()
{
// The idea for using a base class that sets the font came from: http://stackoverflow.com/a/4076183/1882616
this.Font = SystemFonts.MessageBoxFont;
this.InitializeComponent();
}
#endregion
}
}