Click here to Skip to main content
15,917,538 members
Home / Discussions / C#
   

C#

 
AnswerRe: File upload using http Pin
Pete O'Hanlon5-Mar-12 21:43
mvePete O'Hanlon5-Mar-12 21:43 
GeneralRe: File upload using http Pin
Sebastian T Xavier5-Mar-12 22:03
Sebastian T Xavier5-Mar-12 22:03 
AnswerRe: File upload using http Pin
DonDiegoDeLaVega5-Mar-12 21:49
DonDiegoDeLaVega5-Mar-12 21:49 
GeneralRe: File upload using http Pin
Sebastian T Xavier5-Mar-12 22:03
Sebastian T Xavier5-Mar-12 22:03 
QuestionMerge cell in datagrid C# Pin
daitranthanhhoa5-Mar-12 16:14
daitranthanhhoa5-Mar-12 16:14 
AnswerRe: Merge cell in datagrid C# Pin
Dave Kreskowiak5-Mar-12 16:18
mveDave Kreskowiak5-Mar-12 16:18 
QuestionWeb Browser to C# application Pin
TKCA5-Mar-12 15:54
TKCA5-Mar-12 15:54 
AnswerRe: Web Browser to C# application Pin
Dave Kreskowiak5-Mar-12 16:18
mveDave Kreskowiak5-Mar-12 16:18 
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 
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


C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

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

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 
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 

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.