티스토리 뷰

- console 로 프로젝트 생성 후, 프로젝트 -> 참조 추가 : system.windows.forms 추가 


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Windows.Forms;


namespace test_Console_N_Window_HdlEvt

{

    class MainApp : System.Windows.Forms.Form

    {

        static void Main(string[] args)

        {

            System.Windows.Forms.Application.Run(new MainApp());

        }

    }

}



MainApp 에서 form 상속 받고, application.run 을 이용해서 MainApp을 form 으로 생성 !

댓글
댓글쓰기 폼