private void guna2Button2_Click(object sender, EventArgs e) { if (DateTime.Now > Program.expdate) { Trialform tf = new Trialform(); tf.Show(); } else { Expenses BA = new Expenses(); BA.TopLevel = false; // BA.AutoScroll = true; this.Controls.Add(BA); BA.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; BA.Dock = DockStyle.Fill; BA.Visible = true; BA.BringToFront(); } }
private void guna2Button11_Click(object sender, EventArgs e) { Expenses si = new Expenses(); si.Show(); }