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 6978773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:47:58+00:00 2026-05-27T17:47:58+00:00

The underlying code, choose the word you want. I wrote these words I want

  • 0

The underlying code, choose the word you want. I wrote these words I want to click on the link. Words may be wrong, so I use Google Translator. Only the “range” values ​​statement how to click? Thank you.

if (webBrowser1.Document != null)
            {
                IHTMLDocument2 document = webBrowser1.Document.DomDocument as IHTMLDocument2;
                if (document != null)
                {
                    IHTMLSelectionObject currentSelection = document.selection;

                    IHTMLTxtRange range = currentSelection.createRange() as IHTMLTxtRange;
                    if (range != null)
                    {
                        const String search = "Sayfalar";

                        if (range.findText(search, search.Length, 2))
                        {
                            range.select();

                        }
                    }
                }



            }
  • 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-05-27T17:47:59+00:00Added an answer on May 27, 2026 at 5:47 pm

    To submit the form you just need to know the id of the submit button

    VB.NET

    For Each html As System.Windows.Forms.HtmlElement In  WebBrowser1.Document.GetElementsByTagName("a")
                If html.InnerText = "YOUR TEXT" Then
                    html.InvokeMember("click")
                End If
    Next
    

    C#

    foreach (System.Windows.Forms.HtmlElement html in WebBrowser1.Document.GetElementsByTagName("a")) {
        if (html.InnerText == "YOUR TEXT") {
           html.InvokeMember("click");
        }
    }
    

    Contact if you have any doubt.

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

Sidebar

Related Questions

I have an underlying ruby game-engine code and I want to use the web
I have an underlying class which I want to place in some code. I
We have an underlying .h file in our platform code that needs built differently
W.r.t code below I can not declare the type of fetch-into-variable as the underlying
What underlying rendering system does the Qt GUI toolkit use on Windows? (I'm assuming
When a WCF REST service has caching enabled, the underlying code (of course) is
I faced situation of global site redesign (not appearance, but code architecture and underlying
I have written the underlying code to display an activityindicator while a hhtp connection
Is there any way to alter the underlying database using EF using Code First
m_io_service.post(boost::ref(i)); I have this call in a section of code, the underlying type i

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.