ravi.joshi53's picture

Unable to dock OpenTK.GLControl

During the process of migration from TAO to OpenTK, I have noticed that docking was working in TAO in the following manner-
this.simpleOpenGlControl1.Dock = System.Windows.Forms.DockStyle.Fill;

I tried the same approach in OpenTK, which is not working-
this.glControl1.Dock = System.Windows.Forms.DockStyle.Fill;

Any workaround please?

Thanks


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

I just tested using OpenTK.Examples -> OpenGL -> Simple GLControl, and this is working correctly.

Make sure to update your viewport with GL.Viewport whenever the GLControl is resized.

ravi.joshi53's picture

Oh I got the key.... thanks Fiddler.