private void SaveForm_Load(object sender, EventArgs e) { BillAmount.Text = Amount.ToString("#,##0.00"); //DiffAmount.Text = (0 - Amount).ToString("#,##0.00"); CashTextBox.Select(); dtdepos = new DataTable(); dtdepos.Columns.Add(new DataColumn() { ColumnName = "DocNo", Caption = "เลขที่เอกสาร" }); dtdepos.Columns.Add(new DataColumn() { ColumnName = "TotalAmount", Caption = "ยอดเงินมัดจำ" }); //dpos.Columns.Add(new DataColumn() { ColumnName = "Amount",Caption="ยอดตัดจ่าย" }); dtdepos.Columns.Add(new DataColumn() { ColumnName = "BillBalance", Caption = "ยอดคงเหลือ" }); loadGrid(); loadDeposit(); }
private void InitForm() { CashTextBox.Focus(); CashTextBox.Select(); }