|
-
May 11th, 2004, 05:23 AM
#1
Thread Starter
Lively Member
Draw a Line
Hi,
Felling a bit silly, where is the line control on VB .Net, can not see it in the toolbox, have they changed the name???
Help,
Chris
-
May 11th, 2004, 05:28 AM
#2
Hi.
The line and shape controls doesn't exist anymore.
You have to all the drawing yourself.
Use the Paint event of whatever control you wish to draw the line to.
VB Code:
Public Sub Paint(Byval sender As Object, e as PaintEventArgs) Handles MyBase.Paint
e.Graphics.DrawLine(Pens.Black,0,0,100,100)
End Sub
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|