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. Setting the "Address" of INternet Explorer through C#

Setting the "Address" of INternet Explorer through C#

Scheduled Pinned Locked Moved C#
csharp
7 Posts 5 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.
  • A Offline
    A Offline
    Abhi2104
    wrote on last edited by
    #1

    I am a novice user and would like to know if is it poosible to set the "Address" field of the Internet Explorer through C#(only C#, no other language). I want to open Internet Explorer on the press of a button, such that the address field is set to a url that I want ie which is sent through the application.

    I J S A 4 Replies Last reply
    0
    • A Abhi2104

      I am a novice user and would like to know if is it poosible to set the "Address" field of the Internet Explorer through C#(only C#, no other language). I want to open Internet Explorer on the press of a button, such that the address field is set to a url that I want ie which is sent through the application.

      I Offline
      I Offline
      I explore code
      wrote on last edited by
      #2

      Hi, u can use this code to launch the internet explorer at a click of a button. Make sure u use namespace System.Diagnostics

      private void button3_Click(object sender, EventArgs e)
      {
      Process proc=new Process();
      proc.StartInfo.FileName = "iexplore.exe";
      proc.Start();
      }

      Cheers

      M 1 Reply Last reply
      0
      • I I explore code

        Hi, u can use this code to launch the internet explorer at a click of a button. Make sure u use namespace System.Diagnostics

        private void button3_Click(object sender, EventArgs e)
        {
        Process proc=new Process();
        proc.StartInfo.FileName = "iexplore.exe";
        proc.Start();
        }

        Cheers

        M Offline
        M Offline
        Mark Greenwood
        wrote on last edited by
        #3

        Better than that you can actually do the following Process pr = new Process(); pr.StartInfo = new ProcessStartInfo("http://www.google.com"); pr.Start(); If IE is set up to handle HTTP items then it will actually open and automatically direct you to google....

        1 Reply Last reply
        0
        • A Abhi2104

          I am a novice user and would like to know if is it poosible to set the "Address" field of the Internet Explorer through C#(only C#, no other language). I want to open Internet Explorer on the press of a button, such that the address field is set to a url that I want ie which is sent through the application.

          J Offline
          J Offline
          jason_mf
          wrote on last edited by
          #4

          you can try to using SHDocVw.InternetExplorer. EX: object obj = null; SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorer(); ie.Visible = true; ie.Navigate("http://pzs8417.spaces.live.com/default.aspx", ref obj, ref obj, ref obj, ref obj);

          1 Reply Last reply
          0
          • A Abhi2104

            I am a novice user and would like to know if is it poosible to set the "Address" field of the Internet Explorer through C#(only C#, no other language). I want to open Internet Explorer on the press of a button, such that the address field is set to a url that I want ie which is sent through the application.

            S Offline
            S Offline
            Shyam K Pananghat
            wrote on last edited by
            #5

            I think the Question was "to set the "Address" field of the Internet Explorer" and it is not "how to start IE" so here is my answer, You can call the static method of process class eg: Process.Start("iexplore","www.msn.com") the second parameter is actually passed a a command line argument to the executing file you can also use "StartInfo.Arguments" property but for that you need to create an object of process . so the first one is the easiest way in which we dont have to create any object and dont forget to add a reference to "System.Diagnostics" namespace hope this helps :)

            Shyam my blogs dotnetscoups.blogspot.com . swthoughts.blogspot.com .

            A 1 Reply Last reply
            0
            • A Abhi2104

              I am a novice user and would like to know if is it poosible to set the "Address" field of the Internet Explorer through C#(only C#, no other language). I want to open Internet Explorer on the press of a button, such that the address field is set to a url that I want ie which is sent through the application.

              A Offline
              A Offline
              Abhi2104
              wrote on last edited by
              #6

              thanks people...really appreciate ur help.

              1 Reply Last reply
              0
              • S Shyam K Pananghat

                I think the Question was "to set the "Address" field of the Internet Explorer" and it is not "how to start IE" so here is my answer, You can call the static method of process class eg: Process.Start("iexplore","www.msn.com") the second parameter is actually passed a a command line argument to the executing file you can also use "StartInfo.Arguments" property but for that you need to create an object of process . so the first one is the easiest way in which we dont have to create any object and dont forget to add a reference to "System.Diagnostics" namespace hope this helps :)

                Shyam my blogs dotnetscoups.blogspot.com . swthoughts.blogspot.com .

                A Offline
                A Offline
                Abhi2104
                wrote on last edited by
                #7

                thanks people..appreciate ur help..

                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