I was wondering is it possible to tell a program to draw a line, I mean that when form1 is empty but in the form_load is a piece of code that draws a line from side to a side of the form. If its possible how about coloring the line?:confused:
Printable View
I was wondering is it possible to tell a program to draw a line, I mean that when form1 is empty but in the form_load is a piece of code that draws a line from side to a side of the form. If its possible how about coloring the line?:confused:
It's possible, it's easy. But form_load is not the place to do it.
If you want' the code in the form_load event, you show set the autodraw property of the form to true. Else put this code in the form_paint event.
Code:me.line (X1, Y1)-(X2, Y2),Color
Thanks AIS_DK that does the trick :)