iSpyApplication.MainForm.OpenUrl C# (CSharp) Method

OpenUrl() public static method

public static OpenUrl ( string url ) : void
url string
return void
        public static void OpenUrl(string url)
        {
            try
            {
                Process.Start(url);
            }
            catch (Exception)
            {
                try
                {
                    var p = new Process {StartInfo = {FileName = DefaultBrowser, Arguments = url}};
                    p.Start();
                }
                catch (Exception ex2)
                {
                    Logger.LogExceptionToFile(ex2);
                }
            }
        }

Usage Example

Exemplo n.º 1
0
        private void Button1Click(object sender, EventArgs e)
        {
            MainForm.OpenUrl(MainForm.Website + "/download.aspx");

            MessageBox.Show(LocRm.GetString("ExportWarning"), LocRm.GetString("Note"));
            Close();
        }
All Usage Examples Of iSpyApplication.MainForm::OpenUrl
MainForm