private void Admin_Load(object sender, EventArgs e) { //-------------------Dilanka Rathnayaka------------------------------2/9/2014---------------------------- Reports rep = new Reports(); //set dates rep.FormLoadDateTimePicker(dateTimePicker1, dateTimePicker2); //Set Cashier names to combo box rep.FormLoadComboBox(comboBox1, comboBox2); //------------------------------------------------------------------------------------------------------- KeyPressEvent kpe = new KeyPressEvent(); kpe.manualBilling("admin", "", this); this.KeyPreview = true; this.textBox6.KeyDown += new KeyEventHandler(textBox6_KeyDown); }
private void button9_Click(object sender, EventArgs e) { KeyPressEvent kpe = new KeyPressEvent(); kpe.manualBilling("admin", textBox6.Text, this); }