Hello everyone, I have a problem. I was able to finally make the mechanism for navigating through sites, but now there was a problem, how can I call a function, for example, every 10 seconds. I tried the timer, there is no effect. Here is the code that I tried to stick in a timer:
private void timer2_Tick(object sender, EventArgs e) { timer++; MySqlConnection cnt = new MySqlConnection(strProvider); try { cnt.Open(); MySqlCommand cmd3 = cnt.CreateCommand(); cmd3.CommandText = "SELECT * FROM t_links WHERE ID = '" + timer + "'"; MySqlDataReader readURL = cmd3.ExecuteReader(); while (readURL.Read()) { URL = readURL["URL"].ToString(); webBrowser1.Navigate(URL); labelUrl.Text = "URL: " + URL; } readURL.Close(); } finally { cnt.Close(); } }