public PrimaryInterface() { InitializeComponent(); this.Icon = Properties.Resources.favicon; this.Text = "Slack"; this.BackgroundImage = Properties.Resources.background; email = new EmailLogin((r) => { authStart = r; BeginInvoke(new Action(ShowTeams)); }); email.Dock = DockStyle.Fill; email.BackColor = Color.Transparent; Controls.Add(email); }