ustify">// TODO: Add any constructor code after InitializeComponent call
//
}
///
///Clean up any resources being used.
/// override void Dispose (bool disposing)
{(disposing)
{(components! = null)
{. Dispose ();
}
}. Dispose (disposing);
}
# region Windows Form Designer generated code
///
///Required method for Designer support - do not modify
///the contents of this method with the code editor.
/// void InitializeComponent ()
{. label1 = new System.Windows.Forms.Label ();. textBox1 = new System.Windows.Forms.TextBox ();. button1 = new System.Windows.Forms.Button () ;. SuspendLayout ();
//
// label1
//. label1.Font = new System.Drawing.Font ("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (( System.Byte) (204)));. label1.Location = new System.Drawing.Point (16, 16);. label1.Name = "label1";. label1.Size = new System.Drawing.Size (224 , 24);. label1.TabIndex = 0;. label1.Text = "Введіть пароль Адміністратора:";
//
// textBox1
//. textBox1.Location = new System.Drawing.Point (16, 40);. textBox1.Name = "textBox1";. textBox1.PasswordChar = '@';. textBox1.Size = new System.Drawing.Size (224, 20); . TextBox1.TabIndex = 1;. TextBox1.Text = "";
//
// button1
//. button1.Location = new System.Drawing.Point (80, 80);. button1.Name = "button1";. button1.Size = new System.Drawing.Size (88 , 32);. button1.TabIndex = 2;. button1.Text = "Ок";. button1.Click + = new System.EventHandler (this.button1_Click);
//
// Form2
//. AutoScaleBaseSize = new System.Drawing.Size (5, 13);. ClientSize = new System.Drawing.Size (256, = System.Windows.Forms.FormBorderStyle.Fixed3D;. MaximizeBox = false;. MinimizeBox = false;. Name = "Form2";. Text = "Введіть стомлюй";. ResumeLayout (false);
}
# endregionvoid button1_Click (object sender, System.EventArgs e)
{pas = new DataSet (); DBConnectionString = @ "Provider = Microsoft.Jet.OLEDB.4.0; Data Source = db1.mdb";. Data.OleDb.OleDbConnection aCon = new System. Data.OleDb.OleDbConnection (DBConnectionString);. Data.OleDb.OleDbCommand команда = new System.Data.OleDb.OleDbCommand ("", aCon);. Data.OleDb.OleDbDataAdapter adapter = new System.Data.OleDb.OleDbDataAdapter ...