private void timer1_Tick(object sender, EventArgs e) { string line = "aa"; string file="e:\\"+list_nomber.Text+".txt"; System.IO.StreamReader objreader; objreader=new System.IO.StreamReader(file); while((line=objreader.ReadLine())!= null) { x =Convert.ToDouble(line); end = Convert.ToInt32(x); if (Convert.ToInt32(MyVideo.CurrentPosition) == end) { textBox1.Text = end.ToString(); timer1.Stop(); } } objreader.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)