示例#1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            RenderForm  form = new RenderForm();
            CoreTestApp app  = new CoreTestApp(form);

            Application.Run(form);
        }
示例#2
0
        static void Main()
        {
            NVOptimusEnabler nvEnabler = new NVOptimusEnabler();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            RenderForm form = new RenderForm()
            {
                Width = 1280, Height = 720
            };
            CoreTestApp app = new CoreTestApp(form);

            Application.Run(form);
        }
示例#3
0
 public Form1()
 {
     InitializeComponent();
     renderForm = new RenderForm()
     {
         TopLevel = false,
         Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right
     };
     renderForm.Dock            = DockStyle.Fill;
     renderForm.FormBorderStyle = FormBorderStyle.None;
     renderForm.ShowIcon        = false;
     app = new CoreTestApp(renderForm);
     splitContainer1.Panel2.Controls.Add(renderForm);
     Shown       += Form1_Shown;
     FormClosing += Form1_FormClosing;
     splitContainer1.Panel2.Resize += Panel2_Resize;
     renderForm.Width  = splitContainer1.Panel2.Width;
     renderForm.Height = splitContainer1.Panel2.Height;
 }