public frmLogin()
    {
        this.Text = "Login";

        var __flowLayoutPanel = new BusinessApplicationProjectDemo.StackPanel();

        __flowLayoutPanel.FlowDirection = FlowDirection.TopDown;
        __flowLayoutPanel.Dock          = DockStyle.Fill;

        TextBox txtUsername = new TextBox();

        TextBox txtPassword = new TextBox();

        TextBox txtEmail = new TextBox();

        Button btnLogin = new Button();

        btnLogin.Text = "Login";

        txtUsername.TabIndex = 0;
        __flowLayoutPanel.Controls.Add(txtUsername);

        txtPassword.TabIndex = 1;
        __flowLayoutPanel.Controls.Add(txtPassword);

        txtEmail.TabIndex = 2;
        __flowLayoutPanel.Controls.Add(txtEmail);

        btnLogin.TabIndex = 3;
        __flowLayoutPanel.Controls.Add(btnLogin);

        this.Controls.Add(__flowLayoutPanel);
    }
    public frmTest()
    {
        this.Text = "Test";

        var __flowLayoutPanel = new BusinessApplicationProjectDemo.StackPanel();

        __flowLayoutPanel.FlowDirection = FlowDirection.TopDown;
        __flowLayoutPanel.Dock          = DockStyle.Fill;

        TextBox txtFirstName = new TextBox();

        Button btnTest = new Button();

        btnTest.Text = "Test";

        txtFirstName.TabIndex = 0;
        __flowLayoutPanel.Controls.Add(txtFirstName);

        btnTest.TabIndex = 1;
        __flowLayoutPanel.Controls.Add(btnTest);

        this.Controls.Add(__flowLayoutPanel);
    }