HOW CAN I DRAW SPOTS in Visual Basic 6

i have made a program for function
drawings but it uses a picturebox
to draw the functions so it is very
slow. because of that i want to use
opengl acceleration to draw spots
and lines inside an opengl control.

please help me because i am new in
opengl coding.

have a look at gamedev on how to set your opengl stuff up.

GLFW can be an alternative, since it supports Visual Basic. It depends a little bit on how you want to implement your drawing functions (e.g. in a separate window or as part of a window).