Click here to Skip to main content
15,889,096 members
Home / Discussions / C#
   

C#

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

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.