Hello everyone !
I'm new to windows forms ( actually I started kinda...today)...
I was able to bind an OpenGL context to a form, and later create a GLForm derived from Form. Both worked perfectly, no flickering at all, but I was rendering directly in the form.
I'm now trying to create a OpenGL control, derived from UserControl, which alows me to render only in that control.
I was able to create the control and render onto it, but it's flickering... alot, I tried to override the OnPaintBackground method of both the control and the form that holds the control, but flickering was still there ....
My paint method is very simple, it just clears the screen using OpenGL, render stuff, and then swap buffers.
Anyone had a problem like this before Do you have any sugestion on this
Thanks in advance !!!

OpenGL control
Details Monster
Hi,
You just drag and drop the control onto a form, and in the form's constructor call InitializeContexts.
In the nehe example provided with the source http://svn.myrealbox.com/viewcvs/*checkout*/trunk/tao/examples/NeHe/Lesson01/Lesson01.cs
they actually use their own message loop, and you can see where the bind the context.
Hope this helps,
Thanks,
Gary
Miguel Gasca - MSFT
If you need any help on this, please contact me
Best regards
riverlady
I am just curious on how you managed to bind a OpenGL context to the form I have searched like crazy but can still not find out where or how to start/do it. So if you could tell me I would be greatfull.
Regards
t-m00re
hanafy
A (maybe out of date) version of their user control is available at http://svn.myrealbox.com/viewcvs/branches/tao-rridge-0/tao/Framework/Projects/Tao.Platform.Windows/SimpleOpenGlControl.cs rev=46154&view=auto - you can grab a fairly recent build inc. upto-date sources from http://www.vlad1.com/~vladimir/tao/
Hope this helps,
Gary
FlashMC
I 've read your message, and I should say that's exactly the one, I look for.
can u please send me a simple example how can I use an OpenGL panel in a managed c++ Form