Program that launches web browser: C#





using System.Diagnostics;

class Program
{
    static void Main()
    {
  // Search Google for this.
  SearchGoogle("VB.NET awesome");
    }

    /// <summary>
    /// Search Google for this term.
    /// </summary>
    static void SearchGoogle(string t)
    {
  Process.Start("http://google.com/search?q=" + t);
    }
}

No comments:

Post a Comment