/* private void button6_Click(object sender, EventArgs e) * { * form2.image(); * }*/ /*private void button7_Click(object sender, EventArgs e) * { * if (textBox3.Text == "") * { MessageBox.Show("PLEASE SELECT ANY FILE"); } * else * { * if (this.button1.Text == "PAUSE") * { * this.button1.BackColor = System.Drawing.Color.DarkOliveGreen; * this.button1.Text = "PLAY"; * flag = 1; * form2.tymstopper(); * } * form2.flash(); * } * }*/ private void button3_Click(object sender, EventArgs e) { String ab = form2.img_file(); System.IO.File.WriteAllText(@".\file2.txt", string.Empty); try { StreamWriter sw = new StreamWriter(@".\file2.txt", true, Encoding.ASCII); sw.Write(ab); //close the file sw.Close(); } catch (Exception ex) { Console.WriteLine("Exception: " + ex.Message); } }
private void button3_Click(object sender, EventArgs e) { textBox2.Text = form2.img_file(); }