private void btn_Click(object sender, EventArgs e) { using (UsersBean ub = new UsersBean()) { ub.Exists(txtName); } OutMsg(); }