Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I draw lines in vb?

Status
Not open for further replies.

rainerforsthuber

Programmer
Nov 5, 2001
5
0
0
AT
i just want to draw lines in my form. how can i do this?

thanks ;)
 

Hi,

form1.line (10,10) - (100,100)

Draws a line. If you are drawing many lines and you're in a hurry , use the API:

Public Type POINT_TYPE
x As Long
y As Long
End Type

Public Declare Function Polyline Lib "gdi32.dll" (ByVal hdc As Long, lpPoint As POINT_TYPE, ByVal nCount As Long) As Long

Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top