Click here to Skip to main content
15,895,192 members
Home / Discussions / C#
   

C#

 
AnswerRe: Gmail inbox retrive Pin
shivamkalra25-Mar-11 13:38
shivamkalra25-Mar-11 13:38 
GeneralRe: Gmail inbox retrive Pin
Keith Barrow25-Mar-11 13:47
professionalKeith Barrow25-Mar-11 13:47 
AnswerRe: Gmail inbox retrive Pin
Keith Barrow25-Mar-11 13:45
professionalKeith Barrow25-Mar-11 13:45 
GeneralRe: Gmail inbox retrive Pin
shivamkalra26-Mar-11 7:42
shivamkalra26-Mar-11 7:42 
AnswerRe: Gmail inbox retrive Pin
Ganesh Kumar Kaki13-Apr-11 2:51
Ganesh Kumar Kaki13-Apr-11 2:51 
Questionget HTML elements with C# in ASP.NET Pin
msqar25-Mar-11 9:51
msqar25-Mar-11 9:51 
AnswerWrong Forum Pin
Keith Barrow25-Mar-11 13:51
professionalKeith Barrow25-Mar-11 13:51 
QuestionWhat is the mistake with this code??? Pin
shivamkalra25-Mar-11 7:34
shivamkalra25-Mar-11 7:34 
Hi,
I've just started to learn multi-threading. I'm trying to make a console program that makes a web browser and then navigate to some page and post some data and invoke submit button and in method it waits for the response of the web browser. I'm using code below, could someone tell me how to do it correctly.

private AutoResetEvent ar;
        private WebBrowser brs;

        [STAThread]
        private void Contribute_Load(object sender, EventArgs e)
        {
            ar = new AutoResetEvent(false);
            brs = new WebBrowser();
            brs.Url = new Uri("http://www.gmail.com");
            brs.Navigated +=new WebBrowserNavigatedEventHandler(brs_Navigated);
            ar.WaitOne();
            Console.WriteLine("Navigated to gmail.com");
        }

        void brs_Navigated(object sender, WebBrowserNavigatedEventArgs e)
        {
            ar.Set();
        }


This code never prints navigated to gmail.

Thank you
Shivam
AnswerRe: What is the mistake with this code??? Pin
Luc Pattyn25-Mar-11 7:44
sitebuilderLuc Pattyn25-Mar-11 7:44 
GeneralRe: What is the mistake with this code??? Pin
shivamkalra25-Mar-11 7:57
shivamkalra25-Mar-11 7:57 
GeneralRe: What is the mistake with this code??? Pin
Luc Pattyn25-Mar-11 8:12
sitebuilderLuc Pattyn25-Mar-11 8:12 
GeneralRe: What is the mistake with this code??? Pin
shivamkalra25-Mar-11 8:28
shivamkalra25-Mar-11 8:28 
GeneralRe: What is the mistake with this code??? Pin
Dev. RoOo725-Mar-11 19:36
Dev. RoOo725-Mar-11 19:36 
AnswerRe: What is the mistake with this code??? Pin
David198725-Mar-11 7:57
David198725-Mar-11 7:57 
AnswerRe: What is the mistake with this code??? Pin
Luc Pattyn25-Mar-11 8:09
sitebuilderLuc Pattyn25-Mar-11 8:09 
GeneralRe: What is the mistake with this code??? Pin
David198725-Mar-11 8:11
David198725-Mar-11 8:11 
AnswerRe: What is the mistake with this code??? Pin
Dave Kreskowiak25-Mar-11 8:16
mveDave Kreskowiak25-Mar-11 8:16 
AnswerRe: What is the mistake with this code??? Pin
BobJanova30-Mar-11 23:58
BobJanova30-Mar-11 23:58 
Questionpowerpoint Pin
om_metab25-Mar-11 7:17
om_metab25-Mar-11 7:17 
AnswerRe: powerpoint Pin
Luc Pattyn25-Mar-11 7:38
sitebuilderLuc Pattyn25-Mar-11 7:38 
Questioncombbobox fild saving Pin
Pierre besquent25-Mar-11 1:16
Pierre besquent25-Mar-11 1:16 
AnswerRe: combbobox fild saving Pin
Not Active25-Mar-11 1:20
mentorNot Active25-Mar-11 1:20 
GeneralRe: combbobox fild saving Pin
Pierre besquent25-Mar-11 2:37
Pierre besquent25-Mar-11 2:37 
GeneralRe: combbobox fild saving Pin
Not Active25-Mar-11 2:50
mentorNot Active25-Mar-11 2:50 
GeneralRe: combbobox fild saving Pin
Pierre besquent25-Mar-11 2:57
Pierre besquent25-Mar-11 2:57 

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.