• 20-12-2012, 14:49:01
    #1
    Üyeliği durduruldu


    Arkadaşlar bu kodda form üzerinde comboboxlardan seçilenler ve checkbox'larda tıklananlar hepsi tek bir messagebox'ta gösterilecek çok uğraştım yapamadım yardımlarınızı bekliyorum.
  • 20-12-2012, 19:41:24
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Butonun click eventinde kod blogunun arasına;

    string mesaj = "";

    mesaj += " " +comboBox1.SelectedItem.ToString();
    mesaj += " " +comboBox2.SelectedItem.ToString();

    if(checkBox1.Checked)
    {
    mesaj +=" "+ checkBox1.Text;
    }
    if(checkBox2.Checked)
    {
    mesaj +=" "+ checkBox2.Text;
    }
    ...

    MessageBox.Show(mesaj);
  • 20-12-2012, 21:52:55
    #3
    Üyeliği durduruldu
    hepsini bir değişkene ata ondan sonra mesaj box ta
    örnek :
    string comb1 = combobox1.selecteditems.tostring();
    string comb2 = combobox2.selecteditems.tostring();
    MessageBox.Show("Combobox1 : "+com1+"\nCombobox2 :"+comb2);
    gibi yapabilirsini basit olarak
  • 24-12-2012, 04:16:19
    #4
    Sanırım seçilenlerin hepsini aynı "panel" üzerinde yanyana gösterilmesini istiyorsun

    for (int i = 0; i < checkedListBox1.CheckedItems.Count; i++)
    {
    richTextBox1.AppendText(Convert.ToString(checkedLi stBox1.CheckedItems[i]) + ",");
    }

    bu kod işini görür