とラベルをループ:は、私は、テキストファイルに書かれているものに応じて、いくつかのラベルの背景を変更したい似た名前のC#
private void Form3_Load(object sender, EventArgs e)
{
string[] words = new string[7];
StreamReader read = new StreamReader(path);
while(!read.EndOfStream)
{
string line = read.ReadLine();
words = line.Split(';');
if(words[6] == "no")
{
//-----What I have to write here---
}
}
read.Close();
}
「lbl101」、「lbl102」という名前の50枚のラベルの上にあり、 」.... "" lbl150"
は、私が何をその明確ではないと思いますあなたの求める。あなたはどのような条件でラベル付けしたいですか? – Johannes
それらをすべてスタックに置き、色を変更しますか? –