Jump to content

C# Dizideki Eleman Sayısını Alamıyorum


lamont
 Share

Recommended Posts

arkadaşlar dizi ye atanan degerleri sayini alamıyorum 5 eleman girdinmi labelde 5 sayını alamıyorum 

private void button1_Click(object sender, EventArgs e)
               {
                   string[] personel = {""};
                   Array.Sort(personel);
                   int sayac = 0;
                   for (int i = 0; i < personel.Length; i++)
                      
                   {
                       personel[i] = textBox1.Text;

                       listBox1.Items.Add(personel[i].ToString());

                       label1.Text+="Eleman İsimleri" + "  "+ personel[i].ToString()+"\n";
                       label2.Text = "Eleman Sayısı" + i.ToString();
                   }
                  
            
        }
    }
}


arkadaş yardımcı olaiblecek kimse yokmu :?


Sorunu Çözdüm :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...