91. WinForm 시작 - HelloWorld
.NET프로그래밍/WinForm 2009. 8. 20. 13:20 |
==> Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace HelloWorld
{
static class Program
{
/// <summary>
/// 해당 응용 프로그램의 주 진입점입니다.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new HelloWorld());
}
}
}
==============================================================================================
==> Form1.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;
namespace HelloWorld
{
public partial class HelloWorld : Form
{
public HelloWorld()
{
InitializeComponent();
}
private void btnClick_Click(object sender, EventArgs e)
{
MessageBox.Show("안녕하세요. 윈폼");
}
}
}
< 실행결과 >
'.NET프로그래밍 > WinForm' 카테고리의 다른 글
95. 체크박스(CheckBox) / 라디오버튼(RadioButton) (0) | 2009.08.21 |
---|---|
94. 버튼 / 레이블 / 텍스트박스 (Button / Label / TextBox) (0) | 2009.08.21 |
(테스트) 인터넷쇼핑몰 - WinForm을 이용하여 회원으로부터 회원번호, 주문상품코드, 주문수량을 입력받아 결과를 출력하는 프로그램 (0) | 2009.08.21 |
93. WinForm을 이용한 체중 관리 프로그램 (0) | 2009.08.20 |
92. MenuStrip / ContextMenuStrip / StatusStrip / 모달 폼 / 모달리스 폼 (0) | 2009.08.20 |