someone gave me this example could anyone help me fix this into working code?
Code:
namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
static List<string> urls;
static Random random;
public Form1()
{
InitializeComponent();
if(urls == null)
{
urls = GetWebsiteUrls(); //Need to implement
random = new Random();
}
string url = urls[random.Next(urls.count)];
webBrowser1.Navigate(url, "_self", null, "User-Agent: Mozilla/4.0
}
}
}