91. WinForm 시작 - HelloWorld
==> 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("안녕하세요. 윈폼");
}
}
}
< 실행결과 >