Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Windows.Forms;
- using System.Drawing;
- namespace MyForm
- {
- public class TypeTwo : Form
- {
- private Button bBack;
- private Label labelTwo;
- public TypeTwo(){
- InitializeComponents();
- }
- public void InitializeComponents()
- {
- this.Text = "Type Two";
- this.BackColor = Color.Lavender;
- this.ForeColor = Color.Black;
- this.Size = new Size(250, 300);
- this.StartPosition = FormStartPosition.CenterScreen;
- bBack = new Button();
- bBack.Location = new Point(80, 110);
- bBack.Click += bBack_Click;
- bBack.Text = "Back";
- labelTwo = new Label();
- labelTwo.Text = "Account Type Two";
- labelTwo.Location = new Point(70, 80);
- this.Controls.Add(labelTwo);
- this.Controls.Add(bBack);
- }
- public void bBack_Click(object sender, EventArgs e)
- {
- Index ind = new Index();
- ind.Show();
- this.Hide();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement