Hi
I have made a usercontrol that has a border around it. I've done this by creating a rect. shape inside the control that always maintains its width and height to be 1px less than the control width/height. This is so that when the control is resized in the main form, the border remains.
The problem is that at certain measurements the shape does not conform to exactly ctlWidthorHeight - 1px. Instead, it overflows and partly becomes invisible.
I'm looking for a better way to make a constant border around my usercontrol. How can I do this?![]()






Reply With Quote