Click here to Skip to main content
13,041,887 members (64,310 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have a windows form project that I started before installing the SharpGL extension.

The SharpGL library works fine if I create a new SharpGL project. Even if I try to run the examples, they work (after reimporting all references). But when I try to add a SharpGL control in my project, it says that it cannot find the namespace "OpenGLControl" in the SharpGL library. Having in mind that I imported the SharpGL into my project, it's kind of strange, but it's true.

When I type SharpGL.OpenGLControl, it doesn't appear in the autocomplete.

How can I add an OpenGLControl without starting my project from scracth?
Posted 11-Apr-13 1:54am
Aarón C de C 11-Apr-13 9:32am
Hi, thanks for your reply.

The references are already added. I'm adding the OpenGLControl from the toolbox, which means it exists in the project. When I drag it inside the form, a black box appears as it should be. But when I try to compile, it says that the namespace OpenGLControl does not exist.

Then I type

<pre lang="c#">SharpGL.OpenGLControl</pre>

And it says it doesn't exist. However, the SharpGL namespace does exist and I can access it's classes. It's just that one that doesn't appear.

But if I go to my SharpGL project, the SharpGLControl class exists and appears in the autocomplete.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


Please make sure that your project has reference to following assemblies.

  • SharpGL.dll

  • SharpGL.SceneGraph.dll

  • SharpGL.Serialization.dll

  • Either SharpGL.WinForms.dll Or SharpGL.WPF.dll

With SharpGL 2.0 Visual Studio Extensions you also get new Project Types See link[^].


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 11 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100