private void frmBill_Load(object sender, EventArgs e) { label5.Text = DateTime.Now.ToString("dd MMMM, yyyy"); SQLConn.getData(); //for cash Acc name textBox23.ReadOnly = true; //for Cash textBox2.ReadOnly = true; textBox4.ReadOnly = true; check_decimal_func(); if (dec_spe == true) { button4.Text = "3"; } else { button4.Text = "2"; } // textBox1.Focus(); }
private void frmMain_Load(object sender, EventArgs e) { SQLConn.getData(); this.Focus(); }
public frmMain() { InitializeComponent(); SQLConn.getData(); load_chart(); }