After spending 5 days in my life, I am going to abandon this, but first of all I advise experts.
I have a WebBrowser control that loads a web page and I programmatically clear its contents. When you click on a specific menu item on the page, the "Open File" dialog box opens when it is executed in IE (or any other browser). But pressing the same button in a WebBrowser control with InvokeMember(), apparently, does nothing no matter what. I looked at several SO issues, such as Configuring Browser Settings , to make sure my control behaves exactly the same as IE, but it failed.
I got to checking the actual javascript function that the button executes behind the scene and calls it manually using HtmlDocument.InvokeScript(), but cannot do, because the base function accepts an argument of type MouseEvent(actually click), and I'm not sure how to create this object on WITH#.
Another approach was to set focus on that particular button, and then try SendKeys, but that would not work, because the WebBrowser control is not displayed. This is just an instance in mind. To be more specific, WebBrowser
EDIT
In a reader request, here is a simple code that I use to search for an element:
var MyButton = WB.Document.GetElementById("processfilelink");
processfilelink (<a href='#' ... >), , . - jQuery delegate click . InvokeMember() :
MyButton.InvokeMember("click");
. mousedown, mouseup focus . , , click, InvokeMember . .