Salaam
i am trying to draw something(anything at all) with OpenGL in visual studio 2010, project runs without error but nothing gets drawn, nothing happens at all.

Here is the 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 Tao.OpenGl;
using Tao.Platform.Windows;

namespace opengl
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
SimpleOpenGlControl gl = new SimpleOpenGlControl();
gl.InitializeContexts();
}


private void gl_Paint(object sender,PaintEventArgs e)
{

Gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
Gl.glClear(Gl.GL_COLOR_BUFFER_BIT);

Gl.glBegin(Gl.GL_POLYGON);
Gl.glColor3f(1.0f, 0.0f, 1.0f);
Gl.glVertex3f(0.25f, 0.25f, 0.0f);
Gl.glVertex3f(0.75f, 0.25f, 0.0f);
Gl.glVertex3f(0.75f, 0.75f, 0.0f);
Gl.glVertex3f(0.25f, 0.75f, 0.25f);
Gl.glEnd();
Gl.glFlush();
}
}
}

someone please suggest what am i missing..!