1 Replies - 22342 Views - Last Post: 12 August 2008 - 07:41 AM Rate Topic: -----

#1 hitman47  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 12-August 08

how to draw a straight line in vb

Post icon  Posted 12 August 2008 - 07:26 AM

hey guys helps me out..i want to draw a straight line in vb...taking the values of slope n constant fron the user..
thanx in advance
hitman47
Is This A Good Question/Topic? 0
  • +

Replies To: how to draw a straight line in vb

#2 jacobjordan  Icon User is offline

  • class Me : Perfection
  • member icon

Reputation: 113
  • View blog
  • Posts: 1,499
  • Joined: 11-June 08

Re: how to draw a straight line in vb

Posted 12 August 2008 - 07:41 AM

Ever heard of the System.Drawing.Graphics class? That should do everything you want. To draw a line on say, a panel, use
Dim Gr As Graphics = SomePanel.CreateGraphics()
Gr.Drawline(StartingPoint, EndingPoint)


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1