コード例 #1
0
ファイル: frmMain.cs プロジェクト: slurrps-mcgee/UDiagnose
        }//End errorCodeDescriptionsToolStripMenuItem_Click

        //Go to specific websites
        private void btnGo_Click(object sender, EventArgs e)
        {
            Process Website;

            //Check to see what the text in the cmbWebsites combo box reads and go to the appropriate
            //website via the default web browser
            if (cmbWebsites.Text == "Stack Overflow")
            {
                Website = System.Diagnostics.Process.Start("https://stackoverflow.com/");

                Website.Close();
            }
            else if (cmbWebsites.Text == "Code Project")
            {
                Website = System.Diagnostics.Process.Start("https://codeproject.com/");

                Website.Close();
            }
            else if (cmbWebsites.Text == "Toms Hardware")
            {
                Website = System.Diagnostics.Process.Start("https://www.tomshardware.com/");

                Website.Close();
            }

            cmbWebsites.Text = null;
        }//End btnGo_Click