I want to change the line thickness Pen draws in Picturebox with user input who puts a number in the textbox. i don't know how to assign the input number to a Pen.
I have a method that gets location input from user to draw lines it looks like this under a button: drawLine(colorChange);
For Pen thickness i have int penThickness = 0; and i get the value by parsing penThickness = int.Parse(penThickness.Text);
in the button i have the code drawLine(colorChange); // this works and it draws lines between user input location If i try drawLine(colorChange, penThickness)// to also get the pen thickness value along with the pen color i get overload problems
Solution: The piece of code for pen thickness had to be also in the method i'm calling to draw the line.