I tried to convert this to C# but I don't know enough about it to really do it.
private void button1_Click(object sender, EventArgs e)
{
string str1 = "xyz,pbb7,rx78";
string[] str2=new string[]{str1.Split",");
for (int p = 0; p < str2.Length; p++)
{
label1.Text = str2[p]+"\n";
}
}
I get all kinds of errors about my strings and arrays, but maybe it'll help you out at least a little bit.