Question Drawing on picture box

steozum

New member
Joined
Jan 9, 2025
Messages
1
Programming Experience
5-10
I'm drawing figures with the draw method in a picturebox contained in a form and I enlarge it to full screen the picturebox correctly increases in size. However, when I have to draw the lines (or circles) they are interrupted. It seems that they remain visible only on the original size of the picturebox, what am I doing wrong?
Img.JPG
 
what am I doing wrong?

That's a hard question to answer when we don't actually know what you're doing. Please provide a FULL and CLEAR explanation of what you're trying to achieve, how you're trying to achieve it and what happens when you try. Assuming that you are correctly using the Paint event, the drawing still won't change because the size of the control changed if you're using absolute values to control the drawing. You'd have to be using proportional values but you've provided us with no evidence either way. We should not have to make assumptions or guess. You should provide ALL the relevant information.
 
Back
Top