public void addLoginBox() { LoginBox = new LoginBox(); this.pnlPages.Controls.Add(LoginBox); LoginBox.Location = new Point(0, 0); LoginBox.LinkToSignUpClick(linkToSignUp_Click); LoginBox.BtnLoginClick(new SignInHandler(this).Handle); LoginBox.TxtPasswordEnter(new SignInHandler(this).Handle2); }