using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace LibraryApp { public partial class Login : Form { SqlConnection Conn; DataTable dt; public Login() { InitializeComponent(); } //================================================================================// // CreateParams // //================================================================================// // Purpose: Block of code to disable the close box on a form and yet control // // miniize and maximize functionality. // // // // Written By : Dr. Thomas E. Hicks Environment : .NET 2005 // // Date : 3/1/2008 Language : C# // //================================================================================// private const int CS_NOCLOSE = 0x200; protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ClassStyle = cp.ClassStyle | CS_NOCLOSE; return cp; } } private void txtLast_TextChanged(object sender, EventArgs e) { } private void btnCancel_Click(object sender, EventArgs e) { this.Hide(); } private void Login_Load(object sender, EventArgs e) { } } }