I want to draw onto multiple forms.

I use visual basic. I can draw onto one form. I want to draw onto three or more forms and have them all display at the same time on my screen in one program. Has anyone had experience with this? I know that I will somehow have to change the handle to which the openGL draws. Anyone know of a tutorial for this. There aren’t many visual basic tutorials out there. So far I have been using NeHe. I suppose I could translate a C++ version.

I thought I would reply to my own post to keep it on top.

I’ve done this by creating an ActiveX control that handles all of the GL rendering. Each form in the MDI app has an instance of this control.

When you want to render to a different form, just be sure to use wglMakeCurrent to select the correct RC.