「印刷」ボタンをクリックしたときに、これらの名前を出力ラベルに印刷する必要があります。今すぐボタンをクリックして名前を印刷すると、3行のメッセージが表示されます。System.String[].
System.String[]
というメッセージは表示されません。ありがとう!文字列を配列に出力する方法
string[] names = new string[] {"Kevin", "Anthony", "Mike", "Allan" };
private void button1_Click(object sender, EventArgs e)
{
//taverse the array and dispalay the scores into the label
string output = "";
for(int i=0;i<=names.Length; i++)
{
output = output + names + "\n";
}
displayLabel.Text = output;
}
ありがとう!これはうまくいった! – user6923913