private void button1_Click(object sender, EventArgs e) { textBox1.Text = "My test"; txbSysColors.Text = ""; } private void button2_Click(object sender, EventArgs e) { txbSysColors.Text = "System Colors"; textBox1.Text = ""; }
private void button1_Click(object sender, EventArgs e) { openFileDialog1.ShowDialog(); StreamReader stream = new StreamReader(openFileDialog1.FileName); string str = ""; while ((str = stream.ReadLine()) != null) { if (str.Contains("SYS_CLR")) { txbSysColors.Text = str.Split('=').Last().ToString(); txbSysColors.Text = "here"; textBox1.Text = "here"; textBox1.Text = str; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)