top of page
Ara

Form Aplication Sipariş Formu Yapımı

  • sametmedyadestek
  • 21 Ara 2015
  • 1 dakikada okunur

Burda Çogunlukla Öğreneceğiniz Bilgi Kaydetme İşlemi Yani Kaydete Tıklandığında Listbaxa Yazdırma İşlemi....

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;

namespace WinForm_02 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

private void Form1_Load(object sender, EventArgs e) { cmbUrun.Text = "Ürün Seçiniz"; cmbUrun.Items.Add("Aksesuar"); cmbUrun.Items.Add("Ayakkabı"); cmbUrun.Items.Add("Ceket"); cmbUrun.Items.Add("Çanta"); }

private void btnKaydet_Click(object sender, EventArgs e) {

string siparis=string.Format("{0} {1} Adet:{2} Siparis:{3} Tarih:{4}",txtAd.Text,txtSoyad.Text,nmrcAdet.Value,cmbUrun.SelectedItem,dtTarih.Value.ToShortDateString()); lstSiparis.Items.Add(siparis); txtAd.Text = txtSoyad.Text = string.Empty; nmrcAdet.Value = 0; dtTarih.Value = DateTime.Now; cmbUrun.Text = "Urun Seçiniz"; }

private void btnCikis_Click(object sender, EventArgs e) { this.Close(); } } }

Comments


Tanıtılan Yazılar
Son Paylaşımlar
Arşiv
Etiketlere Göre Ara
Bizi Takip Edin
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page