본문 바로가기
C# 언어

C# 윈도우즈 폼을 사용하여 Hello world 출력하기

by treeCoder 2021. 1. 1.

C# 윈도우즈 폼을 사용하여 Hello world 출력해 보자.

다음의 프로그램을 testForm.cs라 저장한다.

 

using System;

using System.Windows.Forms;

 

class Hello

{

       static void Main( string[] args )

       {

            MessageBox.Show("Hello");

       }

}

 

컴파일 방법은 아래와 같다.

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe -target:winexe testForm.cs

 

 

댓글