Can I just draw a line on a form???
i.e in VB i would code
Line (0,0)-(100,100),vbRed
i need the VBA version (if there is one)
does anyone know of this... surley it can't be that hard
I know this is an old post, but I came across it so I might as well post.
Both of the examples given in the thread have great examples of how to work with gradients, using the Windows API.
But to answer your original question (eventhough you revealed the real purpose behind it) yes you can create lines on forms. You can easily create lines, rectangles, circles, labels, and any other control/object. The problem exists that in order to create these objects, the form must be closed or in design mode in order to edit. However, you cannot add a line after the form is opened.