Problem with form focus

I have a form and a picture box in which I put my opengl display. My problem is that when the form loads, the painting overlays the rendering until I click and render it again, but then when I loose focus from the picture box, the opengl goes away again. Is there some way for me to keep focus or some other kindof object to put the opengl in to keep it from doing this? Thank you anyone for your help.

I think, that U draw on wm_paint message (?). try to draw at timer event. Did I understand U rightly? :slight_smile:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.