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. Visual Basic
  4. web browser in vb.net.

web browser in vb.net.

Scheduled Pinned Locked Moved Visual Basic
csharphtmlquestion
3 Posts 3 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.
  • O Offline
    O Offline
    offroaderdan
    wrote on last edited by
    #1

    Experts, I have a web browser in vb.net, works like a treat :) However is there any way that on a button click in the html web page through vb.net, can i then have a button that is invisible in vb.net to be then be visible to the user on the vb page. e.g the web page is shown but the user doesn't do any thing. - nothing happens the user types something in - nothing happens on the vb side the user types something in a presses the submit buttons - a vb button appears allowing them to continue. Any ideas? Dan

    L T 2 Replies Last reply
    0
    • O offroaderdan

      Experts, I have a web browser in vb.net, works like a treat :) However is there any way that on a button click in the html web page through vb.net, can i then have a button that is invisible in vb.net to be then be visible to the user on the vb page. e.g the web page is shown but the user doesn't do any thing. - nothing happens the user types something in - nothing happens on the vb side the user types something in a presses the submit buttons - a vb button appears allowing them to continue. Any ideas? Dan

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, you could; 1. modify the web page any way you like, it is available as WebBrowser.DocumentText 2. add JavaScript (assuming JS is enabled). 3. add/modify hyperlinks, possibly pointing to your own web site 4. provide an embedded HTTP server, which means your own web site could be embedded inside your app (see e.g. Sample HTTP Server Skeleton in C#[^]) :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      Prolific encyclopedia fixture proof-reader browser patron addict?
      We all depend on the beast below.


      1 Reply Last reply
      0
      • O offroaderdan

        Experts, I have a web browser in vb.net, works like a treat :) However is there any way that on a button click in the html web page through vb.net, can i then have a button that is invisible in vb.net to be then be visible to the user on the vb page. e.g the web page is shown but the user doesn't do any thing. - nothing happens the user types something in - nothing happens on the vb side the user types something in a presses the submit buttons - a vb button appears allowing them to continue. Any ideas? Dan

        T Offline
        T Offline
        The Man from U N C L E
        wrote on last edited by
        #3

        It sounds like you have a WebBrowser component displaying some HTML embedded in a windows Form, and you want to respond to events that cause a postback in the web page in the windows form. I am assuming that is what you are getting at. We have a similar thing where html is used to display details inside a windows form and hyperlinks cause a new windows form to pop up instead of navigating in the HTML. We do this by handling the BeforeNavigate event of the browser and interrogating the URL requested. If the URL requires custom navigation in the windows application then we set e.Cancel = True to stop the default navigation continuing and instead run our own custom code. It is all a bit messy, but that is the price for a hybrid windows/web solution.

        If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles]  [My Website]

        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