Click here to Skip to main content
12,892,596 members (46,210 online)
Rate this:
Please Sign up or sign in to vote.
See more: .NET C#3.5
Please some on help to control the website buttons and textbox using c#. I want to click the buttons using code.

What I have tried:


I try on this code but i can't understand the how it works and also it didn't works.
Posted 21-Apr-17 1:09am
Updated 21-Apr-17 1:34am
Karthik Bangalore 21-Apr-17 8:02am
make sure the document has the button with id btnSubmit
Vinod Jangle 4 days ago
This code will pull 'btnSubmit' from document currently open in WebBrowser1 control and will invoke click event of btnSubmit assuming you have this control defined with the event. if it's not present it won't work and probably cause script error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 21 Apr 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100