I'm writing a program that when textBox1 change:
URL = "http://example.com/something/";
URL += System.Web.HttpUtility.UrlEncode(textBox1.Text);
s = new System.Net.WebClient().DownloadString(URL);
I want limit the time DownloadString(URL) allowed by 500 milliseconds. If more than, cancel it.