March 28th, 2011, 12:26 PM
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?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.