Example #1
0
        private void MDIContainer_Load(object sender, EventArgs e)
        {
            LogInForm LIForm = new LogInForm(null);

            LIForm.Show();
            LIForm.MdiParent = this;
        }
        private void btnLogOut_Click(object sender, EventArgs e)
        {
            LogInForm LF = new LogInForm(this);

            LF.MdiParent = this.MdiParent;
            LF.Show();
            LF.Location = new Point(0, 0);
        }
 public ProfileForm(LogInForm LIForm, PauseForm PForm)
 {
     InitializeComponent();
     this.LIForm    = LIForm;
     this.PForm     = PForm;
     this.Username  = LogInForm.Username;
     lblHi.Text     = "BELLO \n" + Username;
     con            = new SqlCeConnection(@"Data Source=App_Data\Database.sdf");
     picture        = new SqlCeParameter("@picture", SqlDbType.Image);
     cmd.Connection = con;
 }