# OpenGL using Managed C++ and Windows Forms

**URL:** <https://community.khronos.org/t/opengl-using-managed-c-and-windows-forms/51148>\
**Category:** OpenGL\
**Tags:** windows\
**Created:** [January 19, 2004, 5:31am UTC](https://community.khronos.org/t/opengl-using-managed-c-and-windows-forms/51148 "2004-01-19T05:31:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takura](https://community.khronos.org/letter_avatar_proxy/v4/letter/t/82dd89/32.png) [@Takura](https://community.khronos.org/u/Takura)\
**Post date:** [January 19, 2004, 5:31am UTC](https://community.khronos.org/t/opengl-using-managed-c-and-windows-forms/51148/1 "2004-01-19T05:31:00Z")

</div>

Can someone please provide a simple “bouncing box” example of OpenGL using Managed C++ (not C#) and Windows Forms.

I’ve recently moved from OpenGL in MFC and trying to get to get to grips with Windows Forms and OpenGL, and would love to have a working example to dissect so I can re-frame my mind. Basically I’m trying to figure out how Windows Forms does it.

Thanx

---

<div class="post-metadata">

**Author:** ![Takura](https://community.khronos.org/letter_avatar_proxy/v4/letter/t/82dd89/32.png) [@Takura](https://community.khronos.org/u/Takura)\
**Post date:** [January 19, 2004, 12:52pm UTC](https://community.khronos.org/t/opengl-using-managed-c-and-windows-forms/51148/2 "2004-01-19T12:52:00Z")

</div>

Oh, this was sweet, okay, so its a start. I trawlled the web looking for any wrappers for OpenGL, and came across a couple.

But I settled on the Tao Framework for .NET ([http://www.randyridge.com/Tao/Default.aspx](http://www.randyridge.com/Tao/Default.aspx))

I downloaded the Framework and installed all the dlls as required. And set about creating my first OpenGL enabled windows form application using managed C++.

And it works just fine. They have a C# example at ( [http://www.randyridge.com/Tao/Tutorials/SimpleIntro/SimpleIntro.html](http://www.randyridge.com/Tao/Tutorials/SimpleIntro/SimpleIntro.html) ), but this is simple enough to convert to C++ so I was able to get up and running in next to no time. And it works.

Its a start, but I’ll be playing around with it for a while but at least now I can concentrate on the opengl as per norm.

---

<div class="post-metadata">

**Author:** ![system](https://community.khronos.org/uploads/default/original/2X/b/ba89cb49313a0e869198c8be354afde8bcae027e.png) [@system](https://community.khronos.org/u/system)\
**Post date:** [October 19, 2021, 6:34pm UTC](https://community.khronos.org/t/opengl-using-managed-c-and-windows-forms/51148/3 "2021-10-19T18:34:48Z")

</div>

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.
