This course - Getting a Google search on a process name

v1.0 - last updated: 08/07/2006   


It might be advisable also to catch some specific exceptions regarding network failure when trying to get a web page over the network:

            try
            {
                string url = "http://www.google.com/search?hl=en&lr=&safe=off&q=";
                url += listBox1.SelectedItem; // append process name to above URL
                webBrowser1.Navigate(url);
                enableBrowserNavButtons(); // does what it says
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }


Visitors: Hit Counter