james bradbery

james bradbery

  • NA
  • 19
  • 12.3k

Random selection from a list

Mar 5 2012 8:15 PM
hi there masters of c# code
i bow to your hard work and knowledge


i am a beginner and i would be very gratefull for full explainations and not just code snippets




my target is to create a web browser app in c# which load a difffrent website on each runtime
the string i want to run is posted below
i have about 70 webistes i wish the app to load a diffrent one from the 70 each runtime
the other thing is i want a way to make it load a diffrent user agent also each time i have also a list of about 120 user agents

thank you very much

i will post how far i got below
namespace WindowsFormsApplication2
{
  public partial class Form1 : Form
  {
  public Form1()
  {
  InitializeComponent();
  webBrowser1.Navigate(http://www.anyweb.com, "_self", null, "User-Agent: Mozilla/4.0");
  }
  }
}

Answers (6)