Give me 1 situation where it wont work and I'll agree ..
Anywhere "firstname" doesn't exist as a ElementID or Name
Your assuming that to be true , which is not always the case,
In nexon it would be "tbID" (for login user name)
I wasn't referring to the code part, just the "ID" part , I was letting the OP know it won't be as easy to copy and paste, You will need to get the element ID using Chrome's inspect element , View source or getelementbyid which comes in handy when you need to invoke a submit that uses java and doesn't have a ID or name, (it spits back a number in debug)
This is how You use the code (as well)
Code:
WebBrowser.Document.GetElementById("tbID").InnerText = texbox1.text
all 3 methods work as long as you know the ID
And in some case GetElementByID works best,(if you do not know the ID) like on a certain major corps website in which by signing up you needed to fill in email address and submit to sign up and receive a coupon , ( I create a generator using catch alls) The ID was not displayed, Using GetelementbyID and a breakpoint I was able to learn the ID of the java button was 13.
Not that any of this matters. Fact is, Learn all aspects of Web Documenting (Like Lolland said)
Each has it's pro's and cons...
That's my point.