Link to home
Start Free TrialLog in
Avatar of YetAnotherCoder
YetAnotherCoder

asked on

How to draw line arrow in C#

how draw arrowline in usercontrol. i need that middle of the left and bottom.
arrowline.bmp
Avatar of jdavistx
jdavistx

You override the OnPaint event, which provides you PaintEventArgs and within this you can use PaintEventArgs.Graphics.

Using the the Graphics object you can use methods such as DrawLine() and DrawPolygon.
protected override void OnPaint(PaintEventArgs e)
{
   Graphics g = e.Graphics;
   //Draw your line and triangle here!
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial