title: Opentk glcontrol in the winforms with c# visual studio 2010?
body: <p>I used openTK control to draw something,but it wass always displaying a white background. WHY？</p>
  
  <pre><code>    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;
      using OpenTK;
      using OpenTK.Graphics.OpenGL;
      using OpenTK.Input;
  
      namespace WindowsFormsApplication10
      {
          public partial class Form1 : Form
          {
              bool loaded = false;
              public Form1()
              {
                  InitializeComponent();
              }
  
              private void glControl1_Load(object sender, EventArgs e)
              {
                  loaded = true;
                  GL.ClearColor(Color.SkyBlue); // Yey! .NET Colors can be used directly!
              }
              private void glControl1_Resize(object sender, EventArgs e)
              {
                  if (!loaded)
                      return;
              }
              private void glControl1_Paint(object sender, PaintEventArgs e)
              {
                  if (!loaded) // Play nice
                      return;
  
                  GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
                  glControl1.SwapBuffers();
              }
          }
      }
  </code></pre>