CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011

    Question C# Click Gmail Refresh Button

    I am writing a simple personal app that has a browser control and I want it to automatically "Refresh" gmail to check it more often than it does by default. There are monkey scripts that do this but I'm trying to add my personal style to it.

    Anyhow, I've looked around and found everything but what I can do in csharp using the browser control.

    I found this:

    // Link the ID from the web form to the Button var
    theButton = webBrowser_Gmail.Document.GetElementById("Refresh");

    // Now do the actual click.

    But it comes back with null in 'theButton' so it doesn't invoke anything.

    Anyone have any suggestions?

    Thanks again!

  2. #2
    Join Date
    Mar 2011

    Re: C# Click Gmail Refresh Button

    Btw I am using .Net 4.0

  3. #3
    Join Date
    Nov 2010

    Talking Re: C# Click Gmail Refresh Button


  4. #4
    Join Date
    Jun 2001
    Melbourne/Aus (C# .Net 4.0)

    Re: C# Click Gmail Refresh Button

    How do you know that the Id of the "Refresh" button is "Refresh"? I don't use google, since they wrecked YouTube with Ads, but I would suspect that they would not use such a generic Id.
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.