You’d have to draw the section of the line that crosses the Button as a line on the Button in the Button’s Paint event