Disappearing Cylinders

I’ve implimented OpenGL in a Visual Basic application and it works fine EXCEPT that when I display cylinders and some lines they disappear when one of their ends goes off the edge of the picture box OpenGL is implimented in when I’m rotating and zooming.
Any ideas?


Check whether the cylinder doesn’t exceeds the clipping volume.