Click here to Skip to main content
15,502,616 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
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

Hello,

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[^].

Regards,
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900