hi guys!
can anyone tell me now to draw a line in VB.NET form?
I've been trying to do so , but nothings coming..
gminhas
0
Newbie Poster
Recommended Answers
Jump to PostThere are lot more capabilities in VB.NET than in VB6 -
Jump to PostHere is the old VB6 Way Private Sub DrawLine() Dim bit As Bitmap = New Bitmap(Me.Width, Me.Height) Dim g As Graphics = Graphics.FromImage(bit) Dim myPen As Pen = New Pen(Color.Blue, 3) Me.CreateGraphics.DrawLine(myPen, 0, 0, Me.Width, Me.Height) End Sub
Here is the C# .NET way
All 6 Replies
srikkanthan
36
Light Poster
techniner
2
Posting Pro
Tbusuk
0
Newbie Poster
jbennet
1,618
Most Valuable Poster
Team Colleague
Featured Poster
mohd40
0
Newbie Poster
ada1927
commented:
Thanks, it works fine....
+0
israrkhan
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.