private void CreateControls() { Size = new Size(557, 543); MinimumSize = Size; Content = new Panel { Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom, Size = new Size(Width - 1, Height - 1), Location = new Point(1, 1), BackColor = primaryColor, Parent = this }; canvas = new Canvas { Location = new Point(5, TitleBar.Bottom + 5), Size = new Size(544, 480), Parent = Content }; appleBox = new PictureBox { SizeMode = PictureBoxSizeMode.StretchImage, Image = Properties.Resources.Apple, Location = new Point(10, 9), Size = new Size(32, 32), Parent = TitleBar }; TitleBar.AddTitleBarListeners(appleBox); scoreLbl = new Label { Font = new Font(SecondaryFontFamily, 14, FontStyle.Regular), TextAlign = ContentAlignment.BottomLeft, Location = new Point(appleBox.Right + 5, 9), Size = new Size(60, 32), ForeColor = Color.White, AutoSize = false, Parent = TitleBar, Text = "0" }; TitleBar.AddTitleBarListeners(scoreLbl); crownBox = new PictureBox { SizeMode = PictureBoxSizeMode.StretchImage, Image = Properties.Resources.Crown, Location = new Point(scoreLbl.Right + 5, 9), Size = new Size(32, 32), Parent = TitleBar, Visible = false }; TitleBar.AddTitleBarListeners(crownBox); bestScoreLbl = new Label { Font = new Font(SecondaryFontFamily, 14, FontStyle.Regular), TextAlign = ContentAlignment.BottomLeft, Location = new Point(crownBox.Right + 5, 9), Size = new Size(60, 32), ForeColor = Color.White, AutoSize = false, Parent = TitleBar, Visible = false }; TitleBar.AddTitleBarListeners(bestScoreLbl); CultureInfo info = new CultureInfo(NativeMethods.GetUserDefaultLCID()); System.Threading.Thread.CurrentThread.CurrentUICulture = info; }