private void btnAttReport_Click(object sender, EventArgs e) { ViewAttendanceReport var = new ViewAttendanceReport(); var.ShowDialog(); }