w System.Drawing.Point (296, 226);. button4.Name = "button4";. button4.Size = new System.Drawing.Size (96, 32) ;. button4.TabIndex = 3;. button4.Text = "Додати";. button4.Click + = new System.EventHandler (this.button4_Click);
//
// comboBox1
//. comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) p>
| System.Windows.Forms.AnchorStyles.Right)));. comboBox1.Location = new System.Drawing.Point (112, 8);. comboBox1.Name = "comboBox1";. comboBox1.Size = new System.Drawing.Size (280, 21);. comboBox1.TabIndex = 4;. comboBox1.Text = "Виберіть ...";. comboBox1.SelectedIndexChanged + = new System.EventHandler (this. comboBox1_SelectedIndexChanged);
//
// label1
//. label1.Font = new System.Drawing.Font ("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System . Byte) (204)));. label1.Location = new System.Drawing.Point (8, 8);. label1.Name = "label1";. label1.Size = new System.Drawing.Size (128, 24);. label1.TabIndex = 5;. label1.Text = "Дисципліна:";
//
// Form3
//. AutoScaleBaseSize = new System.Drawing.Size (5, 13);. ClientSize = new System.Drawing.Size (400, = "Form3";. Text = "Адміністратор";. Load + = new System.EventHandler (this.Form3_Load);. ResumeLayout (false);
}
# endregionusery; dis; [] cb = new string [32000]; [] lb = new string [32000]; void button1_Click (object sender, System.EventArgs e)
{. Close ();
} void listBox1_SelectedIndexChanged (object sender, System.EventArgs e)
{(listBox1.SelectedIndex! = -1)
{. Enabled = true;
}
{. Enabled = false;
}
} void textBox1_TextChanged (object sender, System.EventArgs e)
{(textBox1.Text == "")
{. Enabled = false;. Enabled = false;
}
{. Enabled = true;. Enabled = true;
}
} void Form3_Load (object sender, System.EventArgs e)
{= 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 ( команда);. Open ();
команда.CommandText = "SELECT * FROM dis";. SelectCommand = команда;. Fill (dis, "dis");. Clos...