954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to allow the user to select different pen thickness for the lines

how to allow the user to select different pen thickness for the lines, eg. triangle, circle, square?

jasbun
Newbie Poster
2 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
 

On your form you will need a drop down list, textbox or slider control to accept the pen width as input from the user. Save this width to a variable and then when you are creating the pen use that variable to set the width.

float width = // input from the user
Pen blackPen = New Pen(Color.FromArgb(255, 0, 0, 0), width)
hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 167
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You