메뉴 건너뛰기

Programing

C# 게시판

웹사이트 이동하기

관리자2 2018.12.24 18:59 조회 수 : 191

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

using System.Diagnostics;

 

namespace ts4

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

 

        private void Form1_Load(object sender, EventArgs e)

        {

 

        }

 

        private void btnClick_Click(object sender, EventArgs e)

        {

            this.lklblUrl.Text = this.txtUrl.Text;

            this.ttipMemo.SetToolTip(lklblUrl, this.txtUrl.Text);

            this.lklblUrl.Enabled = true;

        }

 

        private void lklblUrl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)

        {

            Process myProcess = new Process();

            myProcess.StartInfo.FileName = this.txtUrl.Text;

            myProcess.Start();

        }

    }

}

도메인입력->클릭버튼 클릭->링크클릭하면 웹사이트로 이동합니다.
위로