ou7sid3r's picture

glControl won't draw correctly at runtime

Hi - I have been working on a windows forms application. There is a main form (the MDI Parent) and I have created another form (based on your glControl tutorial) which acts as the MDI Child form. In a separate application, the glControl is updated properly and there are no issues - but when I implemented the exact same code (copy pasted) in my new application, the glControl does not update/draw at all. It is created on the form, but it is 'empty' for lack of a better word.

I create the child form during run time of course and that appears to be the only difference. That and the fact that I am using a differnt form as my main form. How can I fix this issue? I have quite a bit of code, so just ask for parts if you need to see the source.

Thanks in advance.

Inline Images
glControl not working

Comments

Comment viewing options

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

I have quite a bit of code, so just ask for parts if you need to see the source.

Maybe you can reproduce the issue by creating a new MDI project and repeating the necessary steps, so you can attach the files here.

Toanso's picture

maybe you got wrong object handle for drawing.