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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. A question on Web Browser Control

A question on Web Browser Control

Scheduled Pinned Locked Moved Visual Basic
questionhtmlsysadmin
5 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.
  • M Offline
    M Offline
    mysorian
    wrote on last edited by
    #1

    Web browser control's Navigate and Navigate2 methods look for either a file on a web server or a local file(htm) on the application root. Is there a possibility to use this by passing a html fragment( say <h2>Hello</h2>) to it? Simple trial shows you get an Action Cancelled web page with no HTTP errors(possibly it's not http).

    M P 2 Replies Last reply
    0
    • M mysorian

      Web browser control's Navigate and Navigate2 methods look for either a file on a web server or a local file(htm) on the application root. Is there a possibility to use this by passing a html fragment( say <h2>Hello</h2>) to it? Simple trial shows you get an Action Cancelled web page with no HTTP errors(possibly it's not http).

      M Offline
      M Offline
      Matthew Hazlett
      wrote on last edited by
      #2

      I found the easiest way was just to create a temp file and navigate to it then delete it. Changing .DocumentText dosn't work except the first time you use it. Matthew Hazlett Sometimes I miss the simpler DOS days of Borland Turbo Pascal (but not very often).

      M 1 Reply Last reply
      0
      • M Matthew Hazlett

        I found the easiest way was just to create a temp file and navigate to it then delete it. Changing .DocumentText dosn't work except the first time you use it. Matthew Hazlett Sometimes I miss the simpler DOS days of Borland Turbo Pascal (but not very often).

        M Offline
        M Offline
        mysorian
        wrote on last edited by
        #3

        Thanks a lot. The html fragment is only in memory and not in a file. You wll have to call additional programs to commit it to a file before navigating to it. I am looking for a easy way out.

        1 Reply Last reply
        0
        • M mysorian

          Web browser control's Navigate and Navigate2 methods look for either a file on a web server or a local file(htm) on the application root. Is there a possibility to use this by passing a html fragment( say <h2>Hello</h2>) to it? Simple trial shows you get an Action Cancelled web page with no HTTP errors(possibly it's not http).

          P Offline
          P Offline
          progload
          wrote on last edited by
          #4

          I use this to replace the web browser control, in case your interested. Tim Anderson's ITWriting http://itwriting.com/htmleditor/[^] progload

          M 1 Reply Last reply
          0
          • P progload

            I use this to replace the web browser control, in case your interested. Tim Anderson's ITWriting http://itwriting.com/htmleditor/[^] progload

            M Offline
            M Offline
            mysorian
            wrote on last edited by
            #5

            Hi progload: Wraps have become very popular in Manhattan delis, but this one is really cool. Thanks for the link. After all code reuse is the goal. In case I use this I will definitely reference this one. Thanks Jayaram Krishnaswamy

            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