forked from TheJoeFin/Caffeinated
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseForm.cs
More file actions
28 lines (25 loc) · 864 Bytes
/
BaseForm.cs
File metadata and controls
28 lines (25 loc) · 864 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
using System.Windows.Forms;
using System.Drawing;
using System.ComponentModel;
namespace Caffeinated;
// Base class for all forms. See stackvoerflow for reasons:
// http://stackoverflow.com/questions/297701/default-font-for-windows-forms-application/4076183#4076183
public class BaseForm : Form {
public BaseForm() {
// Provides design-time support for the default font on Visa/Win7.
// Falls back to something decent if system lacks the font.
Font = SystemFonts.MessageBoxFont;
}
private void InitializeComponent()
{
ComponentResourceManager resources = new(typeof(BaseForm));
SuspendLayout();
//
// BaseForm
//
ClientSize = new Size(278, 244);
Icon = resources.GetObject("$this.Icon") as Icon;
Name = "BaseForm";
ResumeLayout(false);
}
}