• Giriş

Gorsel Programlama

  • AnaSayfa
  • Hakkımızda
  • TOP-10 Proje
  • Download
  • Özel Ders
  • Reklam Verin
  • Destek
  • İletişim
RSS feed
  • Youdao
  • Xian Guo
  • Zhua Xia
  • Google
  • My Yahoo!
  • newsgator
  • Bloglines
  • iNezha
© 2009-2024 Gorsel Programlama

ListBox’a Yazıyı Taşı-Kaldır C#

ListBox’a Yazıyı Taşı-Kaldır C#

ekle

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

private void button1_Click(object sender, EventArgs e)
{
listBox1.Items.Add(textBox1.Text);

textBox1.Text = "";

}

private void button2_Click(object sender, EventArgs e)
{
int i;
DialogResult a;
a = MessageBox.Show(listBox1.SelectedIndices.Count.ToString() + "Eleman Silinsin Mi?", "SİL", MessageBoxButtons.YesNo);
if (a == DialogResult.Yes)
for (i = listBox1.SelectedIndices.Count – 1; i >= 0; i–)
listBox1.Items.RemoveAt(listBox1.SelectedIndices[i]);

if (a == DialogResult.Yes)
for (i = listBox2.SelectedIndices.Count – 1; i >= 0; i–)
listBox2.Items.RemoveAt(listBox2.SelectedIndices[i]);

}

private void button3_Click(object sender, EventArgs e)
{
int i;
for (i = listBox1.SelectedIndices.Count – 1; i >= 0; i–)
{
listBox2.Items.Add(listBox1.SelectedItems[i]);
listBox1.Items.RemoveAt(listBox1.SelectedIndices[i]);

}
}

private void button4_Click(object sender, EventArgs e)
{
int i;
for (i = listBox2.SelectedIndices.Count – 1; i >= 0; i–)
{
listBox1.Items.Add(listBox2.SelectedItems[i]);
listBox2.Items.RemoveAt(listBox2.SelectedIndices[i]);

}
}

private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsLetter(e.KeyChar) == false &&
char.IsWhiteSpace(e.KeyChar) == false && e.KeyChar != (char)08)
e.Handled = true;
}

private void Form1_Load(object sender, EventArgs e)
{
listBox1.SelectionMode = SelectionMode.MultiSimple;
listBox2.SelectionMode = SelectionMode.MultiSimple;

MessageBox.Show("Listbox1’e Eklenen İsimleri"+ " >>" + "Butonu ile Listbox2’e Aktaran" +" <<" + "Butonu ile Listbox1’e Aktaran Programa Hoşgeldiniz");
}

private void textBox1_Leave(object sender, EventArgs e)
{

string ad;
ad = textBox1.Text;
textBox1.Text = ad.ToUpper();
}
}


Projeyi İNDİR

Paylaş :
Tweet
Yorum Yazın | Geri
8 Mart Pazartesi,2010 Tarihinde Yayınlanmıştır. Bulunduğu Kategori : C#, Görsel Programlama
Etiket: C#, C#.net uygulamaları, ListBox'a Yazıyı Taşı-Kaldır C#.NET(C.NET)
« Devlet Yardımı Programı C# Öğrenci Kayıt Programı C# »
  1. sinan ergin
    Cevap | Gönder
    May 2nd, 2011 at 10:36 | #1

    aynı programı vb.net’teki halinide yapıp yazarmısınız siteye rica etsem ?

Yorum Yazın ...

Cevabı İptal
XHTML: Bu Etiketleri Kullanabilirsiniz : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
RSS Bu Yazıya Yapılan Yorumlar


Site içi Arama

Takip et: @GorselProgram







Böyle bir web sayfam olsun diyorsanız iletişim bölümünden veya gorselprogram@gmail.com mail adresinden bize ulaşabilirsiniz.

Son Yazılar

  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 2.dönem 2. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 2.dönem 1. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 1.dönem 2. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 1.dönem 1. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı bilgisayar tasarım uygulamaları dersi 1.dönem 1.sınav soruları ve cevap anahtarı

Etiket Bulutu

.NET Application basit C# C#.NET application C#.NET codes C#.NET examples C#.NET lessons C#.NET practice C#.net örnekleri c# console dersleri c# console örnekleri C# ders c# dersleri c# örnek c# örnekleri C.net dersleri c dersleri code console console örnekleri Csharp csharp dersleri csharp net csharp örnekleri c örnekleri download Flash örnekleri forms Forms örnekleri full indir kod kodlar nesne tabanlı programlama OleDbConnection OleDbDataAdapter tam sürüm uygulama vb net win windows windows forms application örnek ücretsiz

Kategoriler

  • Access (59)
  • Akış Diyagramı Flowchart (69)
  • Android Eğitimleri (2)
  • Asp Net (47)
  • C# (834)
  • C# Console (222)
  • Css (19)
  • Dersler (191)
  • Dökümanlar (21)
  • Dreamweaver (12)
  • Excel (8)
  • Fireworks (28)
  • Flash (77)
  • Görsel Programlama (421)
  • GorselProgramlama.Com (8)
  • Html (35)
  • Pascal (2)
  • Photoshop (5)
  • PHP (2)
  • Planlar (114)
  • Programlama Tanım (4)
  • Sınavlar (147)
  • Sql (10)
  • VB 6.0 (45)
  • VB.NET (219)
  • Videolar (65)
  • Word (7)

Arşiv

Bağlantılar

  • Html Dersleri
  • Muslu.NET
  • Programlama Dersleri

Kimler Sitede ?


    Computers Blogs Top programming blogs

   sayaç Powered by WordPress | Theme by NeoEase | Valid XHTML 1.1 and CSS 3 Yukarı