title: How to change the origin of window form in c# ie top-left and openGL C ie center?
body: <p>I am using C# to create GUI part to draw number of 2D rectangles one on the other and openGl C for generating 3D output of the same.I am using visual studio express edition 2012 for both.The problem i am facing is in c# the origin(0,0) is top-left and in openGl it is centered.So where ever i draw rectangles in 2D it will drawn from the center in openGL. i have tried getting X,Y values from 2D and able to pass it to 3D but output is not as required since openGl is center origin.</p>
  
  <p>How can i resolve this problem?should i try changing origin of 2D c# or 3D openGL which one will be easier? i have already tried gluOrtho2D() dint worked out well for me.and Glulookat() to position the camera, but not sure how to exactly position the camera as per my requirement.Am i in the right path?Shoul i try changing c# origin?</p>
  
  <p>My glorthocode,which i tried to position only the top-left part is ie (-x,y)</p>
  
  <pre><code> gluOrtho2D(-0.1,0,0,0.1);
  </code></pre>