Click here to Skip to main content
15,888,816 members
Home / Discussions / C#
   

C#

 
GeneralRe: Web Browser to C# application Pin
TKCA5-Mar-12 16:56
TKCA5-Mar-12 16:56 
GeneralRe: Web Browser to C# application Pin
Dave Kreskowiak5-Mar-12 17:03
mveDave Kreskowiak5-Mar-12 17:03 
GeneralRe: Web Browser to C# application Pin
TKCA7-Mar-12 2:24
TKCA7-Mar-12 2:24 
GeneralRe: Web Browser to C# application Pin
Dave Kreskowiak7-Mar-12 3:57
mveDave Kreskowiak7-Mar-12 3:57 
Questionrandom selection from a list Pin
james bradbery5-Mar-12 14:57
james bradbery5-Mar-12 14:57 
AnswerRe: random selection from a list Pin
PIEBALDconsult5-Mar-12 15:06
mvePIEBALDconsult5-Mar-12 15:06 
GeneralRe: random selection from a list Pin
james bradbery5-Mar-12 15:12
james bradbery5-Mar-12 15:12 
AnswerRe: random selection from a list Pin
RobCroll5-Mar-12 15:16
RobCroll5-Mar-12 15:16 
C#
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 
        }
    }
}


cut this free hand so it may not compile but you get the idea.
"You get that on the big jobs."

GeneralRe: random selection from a list Pin
james bradbery5-Mar-12 16:30
james bradbery5-Mar-12 16:30 
GeneralRe: random selection from a list Pin
RobCroll5-Mar-12 17:08
RobCroll5-Mar-12 17:08 
GeneralRe: random selection from a list Pin
james bradbery5-Mar-12 17:47
james bradbery5-Mar-12 17:47 
GeneralRe: random selection from a list Pin
james bradbery5-Mar-12 17:56
james bradbery5-Mar-12 17:56 
GeneralRe: random selection from a list Pin
RobCroll6-Mar-12 20:07
RobCroll6-Mar-12 20:07 
AnswerRe: random selection from a list Pin
BobJanova5-Mar-12 22:17
BobJanova5-Mar-12 22:17 
GeneralRe: random selection from a list Pin
james bradbery10-Mar-12 18:22
james bradbery10-Mar-12 18:22 
QuestionSlope method optimisation Pin
A*****5-Mar-12 14:51
A*****5-Mar-12 14:51 
AnswerRe: Slope method optimisation Pin
RobCroll5-Mar-12 18:24
RobCroll5-Mar-12 18:24 
AnswerRe: Slope method optimisation Pin
A*****5-Mar-12 23:12
A*****5-Mar-12 23:12 
AnswerRe: Slope method optimisation Pin
Luc Pattyn5-Mar-12 19:30
sitebuilderLuc Pattyn5-Mar-12 19:30 
GeneralRe: Slope method optimisation Pin
A*****5-Mar-12 23:17
A*****5-Mar-12 23:17 
AnswerRe: Slope method optimisation Pin
BobJanova5-Mar-12 22:04
BobJanova5-Mar-12 22:04 
QuestionSemantic music engine Pin
Abdul Salam Shaikh5-Mar-12 8:49
Abdul Salam Shaikh5-Mar-12 8:49 
AnswerRe: Semantic music engine Pin
PIEBALDconsult5-Mar-12 8:52
mvePIEBALDconsult5-Mar-12 8:52 
AnswerRe: Semantic music engine Pin
Pete O'Hanlon5-Mar-12 8:54
mvePete O'Hanlon5-Mar-12 8:54 
QuestionReturn Value From Async Call Pin
Kevin Marois5-Mar-12 6:15
professionalKevin Marois5-Mar-12 6:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.