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. Open Web Browser from Winform

Open Web Browser from Winform

Scheduled Pinned Locked Moved C#
question
5 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.
  • C Offline
    C Offline
    Chris 3
    wrote on last edited by
    #1

    In Winform, I would like to put a linkedlabel, by click it, it will show up IE web browser, ( Browser will totally seperate from Windform, not within a winform control), how can I do it?

    M P A 3 Replies Last reply
    0
    • C Chris 3

      In Winform, I would like to put a linkedlabel, by click it, it will show up IE web browser, ( Browser will totally seperate from Windform, not within a winform control), how can I do it?

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      See Process claass. Mazy No sig. available now.

      D 1 Reply Last reply
      0
      • M Mazdak

        See Process claass. Mazy No sig. available now.

        D Offline
        D Offline
        dynamic
        wrote on last edited by
        #3

        this should help you : VB:


        using System.Diagnostics;
        //^^^^ top of your form's code page

            Private void button1\_Click(Object sender, System.EventArgs e)
            {
                Process processToStart =new Process();
                processToStart.StartInfo.FileName="IEXPLORE.exe";
                processToStart.StartInfo.Arguments="http://google.com";
                processToStart.Start();// Open internet explorer And navigate To google.com
            }
        

        :) hope it helps


        Private void ExpectingTwins(string twins)
        {
        switch(twins)
        {
        Case ("twins on the way"):
        MessageBox.Show("for mr and mrs dynamic","twins on the way");
        break;
        }
        }


        1 Reply Last reply
        0
        • C Chris 3

          In Winform, I would like to put a linkedlabel, by click it, it will show up IE web browser, ( Browser will totally seperate from Windform, not within a winform control), how can I do it?

          P Offline
          P Offline
          Paresh Gheewala
          wrote on last edited by
          #4

          use combination of Process and ProcessInfo class and call method start :-D;)

          1 Reply Last reply
          0
          • C Chris 3

            In Winform, I would like to put a linkedlabel, by click it, it will show up IE web browser, ( Browser will totally seperate from Windform, not within a winform control), how can I do it?

            A Offline
            A Offline
            Arjan Einbu
            wrote on last edited by
            #5

            This should do the trick. (I think I originally picked up this from MSDN or something): private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { // Determine which link was clicked within the LinkLabel. linkLabel1.Links[linkLabel1.Links.IndexOf(e.Link)].Visited = true; // Display the appropriate link based on the value of the LinkData property of the Link object. System.Diagnostics.Process.Start(e.Link.LinkData.ToString()); }

            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