
glControl won't draw correctly at runtime
Posted Friday, 9 July, 2010 - 10:38 by ou7sid3r inHi - 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.


Comments
Re: glControl won't draw correctly at runtime
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.
Re: glControl won't draw correctly at runtime
maybe you got wrong object handle for drawing.