97. 링크레이블(LinkLabel)
.NET프로그래밍/WinForm 2009. 8. 24. 10:31 |
==> FrmAbout.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace MyWinForms
{
public partial class FrmAbout : Form
{
public FrmAbout()
{
InitializeComponent();
}
private void btnClose_Click(object sender, EventArgs e)
{
// 현재 폼 닫기
this.Close();
}
private void lnkAuthor_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
string url = "http://www.dotnetkorea.com/";
System.Diagnostics.Process.Start(url); // 위 경로 띄우기
Process.Start("notepad.exe"); // 실행 창에서 여는 명령어
//Process.Start("mspaint"); // 그림판
//Process.Start("inetmgr"); // IIS 웹 서버
}
}
}
< 실행결과 >
--> '도구상자'에서 '폼'으로 링크레이블(LinkLabel) 드래그 & 드롭
--> '작성자' 텍스트가 있는 쪽은 '레이블' / 아래 파란색 텍스트로 되어있는 부분은 '링크레이블'이다.
--> 링크 클릭 후 실행된 결과화면
'.NET프로그래밍 > WinForm' 카테고리의 다른 글
99. 콤보박스(ComboBox)와 리스트박스(LIstBox) (0) | 2009.08.24 |
---|---|
98. 메시지박스(MessageBox) (0) | 2009.08.24 |
96. 마스크(Mask) / 리치(Rich) / 읽기전용(ReadOnly) 텍스트박스(TextBox) (0) | 2009.08.24 |
95. 체크박스(CheckBox) / 라디오버튼(RadioButton) (0) | 2009.08.21 |
94. 버튼 / 레이블 / 텍스트박스 (Button / Label / TextBox) (0) | 2009.08.21 |