private void lueAdi_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { SatisFiyati.Focus(); } }
private void adi_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { SatisFiyati.Focus(); } }
private void frmGiris_Load(object sender, EventArgs e) { DataTable dt = DB.GetData(@"select pkSatisDetay,Adet,sd.SatisFiyati,sk.Stokadi from SatisDetay sd with(nolock) inner join StokKarti sk with(nolock) on sk.pkStokKarti = sd.fkStokKarti where pkSatisDetay = " + _fkSatisDetay); if (dt.Rows.Count > 0) { decimal sfiyat = 0; decimal.TryParse(dt.Rows[0]["SatisFiyati"].ToString(), out sfiyat); SatisFiyati.Value = sfiyat; seAdet.Text = dt.Rows[0]["Adet"].ToString(); labelControl1.Text = dt.Rows[0]["Stokadi"].ToString(); SatisFiyati.Focus(); } }
private void simpleButton3_Click_1(object sender, EventArgs e) { SatisFiyati.Value = 0; SatisFiyati.Focus(); }