private void viewbutton_Click(object sender, EventArgs e) { stuinfo = new ustuinfo(); stuinfo.StartPosition = FormStartPosition.Manual; stuinfo.Location = new Point(345, 38); stuinfo.Disabled(); stuinfo.ButtonDisable(); stuinfo.Show(); stuinfo.TextBoxValue = this.GetStudentNo(); }
private void stuinfolbl_Click(object sender, EventArgs e) { if (stuinfo == null) { stuinfo = new ustuinfo(); stuinfo.MdiParent = this; stuinfo.FormClosed += Stuinfo_FormClosed; stuinfo.Show(); } else { stuinfo.Activate(); } }