This might sound like a weird question but I have C# Winform that I set the FormBorderStyle to None. So far everything is good but I was wondering if there was a way to add like a 1px border on around my form ? I know I could do it by creating my own image but I was wondering if there was a more natural way of doing it.
Thanks
This might sound like a weird question but I have C# Winform that I
Share
I consider using an image, or creating unnecessary controls for something that is easily paintable using GDI+ a waste of resources.
I think the simplest solution is overriding the
OnPaintmethod of your form and drawing the border yourself:Of course, you may also use your own
Penwith your own color and width.