Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Question about WebBrowser editing

Question about WebBrowser editing

Scheduled Pinned Locked Moved C#
questionlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    profoundwhispers
    wrote on last edited by
    #1

    I have an AxWebBrowser control displaying a certain page that has two input boxes. I want to Click a button on the form, and have values inserted into those two input boxes. How can I do that? Sammy "A good friend, is like a good book: the inside is better than the cover..."

    H 1 Reply Last reply
    0
    • P profoundwhispers

      I have an AxWebBrowser control displaying a certain page that has two input boxes. I want to Click a button on the form, and have values inserted into those two input boxes. How can I do that? Sammy "A good friend, is like a good book: the inside is better than the cover..."

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      If the button is in the web page, then just use embedded javascript in your page. If the button is in your Windows Form, get the IHTMLDocument2 reference from AxWebBrowser.Document (the interface is defined in the Microsoft.mshtml.dll assembly which should be in your GAC when you install VS.NET, among other things). From that, you can enumerate the controls or get them by ID or NAME. Then just set their innerText property or something along those lines.

      Microsoft MVP, Visual C# My Articles

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups