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. 2 Web Browser Problem

2 Web Browser Problem

Scheduled Pinned Locked Moved C#
csharphelpquestionlearning
4 Posts 2 Posters 1 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.
  • E Offline
    E Offline
    erwinliong
    wrote on last edited by
    #1

    I am a beginner to C#.Net and i am supposed to do these... I have a textbox for URL, a button to load the webpage onto the web browser(web1) on my windows form. After loading is complete, the user can click on image to have the image transferred to the second web browser (web2). The user can also highlight a block of text, after the mouse down is released, the block of text from web1 is to be transferred in web2. So far, I have only done the web1.navigate2(...) part. Can anybody lead me to the correct path? Thank you.

    X 1 Reply Last reply
    0
    • E erwinliong

      I am a beginner to C#.Net and i am supposed to do these... I have a textbox for URL, a button to load the webpage onto the web browser(web1) on my windows form. After loading is complete, the user can click on image to have the image transferred to the second web browser (web2). The user can also highlight a block of text, after the mouse down is released, the block of text from web1 is to be transferred in web2. So far, I have only done the web1.navigate2(...) part. Can anybody lead me to the correct path? Thank you.

      X Offline
      X Offline
      XRaheemX
      wrote on last edited by
      #2

      Can you explain further the purpose of the second web browser? When the user clicks an image in browser 1, are you wanting the image to be downloaded locally and parsed into a web page for browser two, or are you simply wanting the browser2 to navigate to the internet url of the image that was clicked?

      E 1 Reply Last reply
      0
      • X XRaheemX

        Can you explain further the purpose of the second web browser? When the user clicks an image in browser 1, are you wanting the image to be downloaded locally and parsed into a web page for browser two, or are you simply wanting the browser2 to navigate to the internet url of the image that was clicked?

        E Offline
        E Offline
        erwinliong
        wrote on last edited by
        #3

        The second browser actually acts as a temporary location for my actual project. I want to have the image downloaded locally, preferably saved to my relative location with the actual name of the file from the website. Anyway to do this? Please help. Thank you

        X 1 Reply Last reply
        0
        • E erwinliong

          The second browser actually acts as a temporary location for my actual project. I want to have the image downloaded locally, preferably saved to my relative location with the actual name of the file from the website. Anyway to do this? Please help. Thank you

          X Offline
          X Offline
          XRaheemX
          wrote on last edited by
          #4

          I haven't worked with the IE control in such a long time, but I know this is possible. Are you familiar enough with the System.IO namespace that you can write the file to the relative location? I don't remember the exact methods, but there should be an event that fires whenan image is clicked with the arguments including the path of the image, once you get this then you simply download the file and use System.IO to save it out to the hard drive. If you'll trust me enough to send me the code for your current project, I'll look and see what I can remember.

          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