public void TakeAttendance() { at = new AttendanceThread(aSocket, end2, numclients, cb); Thread t = new Thread(new ThreadStart(at.Run)); t.Start(); }