Code to launch brower?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Abe Frohnman

    #1

    Code to launch brower?

    I'm looking for code that will launch the default browser to a webpage
    when an event occurs. Specifically, when an item is selected from the
    menu. Can anyone point me in the right direction?

  • Brian Patterson

    #2
    Re: Code to launch brower?

    I'm partial to this:

    System.Diagnost ics.Process p = new System.Diagnost ics.Process();

    p.StartInfo.Fil eName = "http://www.yahoo.com";

    p.StartInfo.Use ShellExecute = true;

    p.StartInfo.Red irectStandardOu tput = false;

    p.StartInfo.Arg uments = "";

    p.Start();



    Brian Patterson



    "Abe Frohnman" <usenetNO@SPAMe xperimentzero.o rg> wrote in message
    news:ZfFVa.1227 046$cI2.167334@ news.easynews.c om...[color=blue]
    > I'm looking for code that will launch the default browser to a webpage
    > when an event occurs. Specifically, when an item is selected from the
    > menu. Can anyone point me in the right direction?
    >[/color]


    Comment

    • Abe Frohnman

      #3
      Re: Code to launch brower?

      That worked. Thank you. What exactly *is* the System.Diagnost ics.Process
      class?

      Brian Patterson wrote:[color=blue]
      > I'm partial to this:
      >
      > System.Diagnost ics.Process p = new System.Diagnost ics.Process();
      >
      > p.StartInfo.Fil eName = "http://www.yahoo.com";
      >
      > p.StartInfo.Use ShellExecute = true;
      >
      > p.StartInfo.Red irectStandardOu tput = false;
      >
      > p.StartInfo.Arg uments = "";
      >
      > p.Start();
      >
      >
      >
      > Brian Patterson
      >
      >
      >
      > "Abe Frohnman" <usenetNO@SPAMe xperimentzero.o rg> wrote in message
      > news:ZfFVa.1227 046$cI2.167334@ news.easynews.c om...
      >[color=green]
      >>I'm looking for code that will launch the default browser to a webpage
      >>when an event occurs. Specifically, when an item is selected from the
      >>menu. Can anyone point me in the right direction?
      >>[/color][/color]


      Comment

      Working...