Does anyone know how to use OpenGL on a Windows Form?
If you konw,could you give me a simple example?
Thank you!
I found a code
http://www.codeproject.com/KB/miscctrl/OpenGLViewWinForms.aspx?display=Print
But I cannot run it, anyone can help me resolve it.
There really should be little difference between Forms and vanilla Win32, save you need to use IntPtrs instead of HWND/HDC.
Same is true for WPF, but there you’ll need to embed a Forms control in your window to access a window handle.