I saw some similar questions on the site, but none of them helped me.
I have a function that draws several lines in a form when a button is pressed, which changes in form depending on the values ββthat the user enters into some text fields.
My problem is that when I minimize the shape, the lines disappear and I realized that this can be solved using the OnPaint event, but I really donβt understand how to do this.
Can someone give me a simple example of using a function to draw something by pressing a button using the OnPaint event?
source
share