Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8724419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:49:39+00:00 2026-06-13T07:49:39+00:00

Every code example for submitting a form inside a WebBrowser control I have seen

  • 0

Every code example for submitting a form inside a WebBrowser control I have seen so far, hardcodes the WebBrowser.Document.Forms[0].InvokeMember() parameter as "submit".

Must this parameter always be “submit”?

If so, then why is it a parameter?

If not, what are the rules for specifying which string to put there? Is it dependent on the HTML of the page being accessed?

Update 1: The documentation for InvokeMember() clearly shows an example of using a value other than “submit”. So, at least I got the answer: No.

But I still don’t understand when should I use “submit” and when should I use “moveRow”: In the web page I am handling via “submit” there is no mention of that string, yet it works perfectly. Where is that implied “submit” hiding in the web page?

Update 2: Ah! I think I am beginning to get it: It’s a Javascript built-in method. And thus implied for any DOM Form element.

An authoritative answer is most appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:49:41+00:00Added an answer on June 13, 2026 at 7:49 am

    No, it doesn’t have to be “submit”. But that’s certainly the most popular method you’d ever use with a form. The Winforms HtmlDocument and HtmlElement classes are wrappers for the DOM interfaces. Core ones in this case are IHtmlDocument2 (matching HtmlDocument) and IHtmlElement2 (matching HtmlElement). With a raft of specific interface types, like IHtmlFormElement to represent a form object in the DOM. But without a matching class for those in Winforms, HtmlElement wraps them all. Which is why you need to use InvokeMember(), same idea as reflection’s Type.InvokeMember(). It makes up for methods that are not wrapped by HtmlElement. Like IHtmlFormElement::submit().

    The one advantage of HtmlElement is that it helps you avoid the morass of versions of these DOM interfaces. There are seven versions of IHtmlDocument for example. Every time Microsoft improves IE, they tend to have to create another version of the interface with the additional members added.

    You certainly can use them early bound. Add a reference to c:\windows\system32\mshtml.tlb. Cast the WebBrowser.ActiveXInstance to mshtml.IHtmlDocument to use it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In virtually every example code of GTK+ I've seen so far, the widgets of
In every document i have some field (for example myfield). myfield is value of
In this very simple code example, messages get lost every once in a while.
Virtually every code example out there reads a TXT file line-by-line and stores it
I have been considering using the code example shown at Shell Style Drag and
I have tried everything I can think of and every code sample imaginable but
Just about every piece of example code everywhere omits error handling (because it confuses
In the following code every time button is clicked the alter shows the value
If I set a timer to execute a code every 3 seconds. If the
I the following code returns every text that has the price class associated to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.