private void BuildStatisticsMenu() { StatisticsMenu = new Form(); StatisticsMenu.MaximizeBox = false; StatisticsMenu.FormBorderStyle = FormBorderStyle.FixedDialog; StatisticsMenu.Name = "StatisticsMenu"; StatisticsMenu.Text = "Minesweeper"; StatisticsMenu.ClientSize = new Size(200, 315); StatisticsMenu.KeyPreview = true; StatisticsMenu.KeyPress += new KeyPressEventHandler(StatisticsMenuClose); StatisticsMenu.Icon = GameResources.GetIconImage(); Label StatsLabel = new Label(); StatsLabel.Font = new Font(StatsLabel.Font.FontFamily, Single.Parse("14"), FontStyle.Bold); StatsLabel.Text = "High Scores"; StatsLabel.TextAlign = ContentAlignment.MiddleCenter; StatsLabel.Size = new Size(190, 30); StatsLabel.Location = new Point(5, 5); StatisticsMenu.Controls.Add(StatsLabel); Label StatsLabelLine = new Label(); StatsLabelLine.Size = new Size(190, 2); StatsLabelLine.Location = new Point(5, 37); StatsLabelLine.BorderStyle = BorderStyle.FixedSingle; StatisticsMenu.Controls.Add(StatsLabelLine); // Easy Stats Label EasyLabel = new Label(); EasyLabel.Text = "Easy"; EasyLabel.Font = new Font(EasyLabel.Font.FontFamily, Single.Parse("10"), FontStyle.Bold); EasyLabel.TextAlign = ContentAlignment.MiddleLeft; EasyLabel.Size = new Size(190, 20); EasyLabel.Location = new Point(5, 42); StatisticsMenu.Controls.Add(EasyLabel); AddScoreLabels(62, 1); // Medium Stats Label MediumLabel = new Label(); MediumLabel.Text = "Medium"; MediumLabel.Font = new Font(MediumLabel.Font.FontFamily, Single.Parse("10"), FontStyle.Bold); MediumLabel.TextAlign = ContentAlignment.MiddleLeft; MediumLabel.Size = new Size(190, 20); MediumLabel.Location = new Point(5, 121); StatisticsMenu.Controls.Add(MediumLabel); AddScoreLabels(141, 2); // Hard Stats Label HardLabel = new Label(); HardLabel.Text = "Hard"; HardLabel.Font = new Font(HardLabel.Font.FontFamily, Single.Parse("10"), FontStyle.Bold); HardLabel.TextAlign = ContentAlignment.MiddleLeft; HardLabel.Size = new Size(190, 20); HardLabel.Location = new Point(5, 200); StatisticsMenu.Controls.Add(HardLabel); AddScoreLabels(220, 3); Label StatsLabelLineTwo = new Label(); StatsLabelLineTwo.Size = new Size(190, 2); StatsLabelLineTwo.Location = new Point(5, 279); StatsLabelLineTwo.BorderStyle = BorderStyle.FixedSingle; StatisticsMenu.Controls.Add(StatsLabelLineTwo); // The Okay Button NoFocusButton OkayButton = new NoFocusButton(); OkayButton.Text = "Ok"; OkayButton.Name = "OkayButton"; OkayButton.Size = new Size(90, 25); OkayButton.Location = new Point(55, 285); OkayButton.Font = new Font(OkayButton.Font.FontFamily, Single.Parse("10")); OkayButton.Click += StatisticsMenuClose; OkayButton.FlatStyle = FlatStyle.Flat; StatisticsMenu.Controls.Add(OkayButton); }