예제 #1
0
        private static void Main(string[] args)
        {
            Application.SetCompatibleTextRenderingDefault(false);
            Application.EnableVisualStyles();

            var mc = new MyGLControl();
            mc.Dock = DockStyle.Fill;
            mc.Margin = new Padding(8);

            var form = new Form {
                                    Width = 800,
                                    Height = 600
                                };
            form.Controls.Add(mc);

            Application.Run(form);
        }
예제 #2
0
파일: Program.cs 프로젝트: sealong/practice
        static void Main(string[] args)
        {
            Application.SetCompatibleTextRenderingDefault(false);
            Application.EnableVisualStyles();

            var mc = new MyGLControl();

            mc.Dock   = DockStyle.Fill;
            mc.Margin = new Padding(8);

            var form = new Form {
                Width  = 800,
                Height = 600
            };

            form.Controls.Add(mc);

            Application.Run(form);
        }