-2

I m currently learning the ropes of C++ Cli (CLR .NET Framework) and forms, however I am having some issues that I can not seem to find the answer too.

Question: Is it possible to create my own FormBorderStyle or simply modify an existing FormBorderStyle? (i.e Sizable or Fixed3D)

Expected / Desired outcome: A FormBorderStyle similar to "None" but I would still want the form to be movable and resizable (as well as a theme etc. but I think I can manage those parts).

If anyone has any ideas or tips on how to move forward with this I would really appreciate it!

Thanks in advance!

Capplo
  • 1
  • 2
  • That's not possible. You'll have to use None and paint your own. – Hans Passant May 12 '22 at 17:30
  • @HansPassant Oh okay, if I were to paint my own, which setting/image holder would I set that to? Cause the background color would only change the inside and not the border right? Or is there a way to overlay a photo over the border as well? – Capplo May 12 '22 at 17:33
  • You can draw whatever you want inside a region you have defined. An example of a Form with *fake* borders (draggable): [How can I draw a rounded rectangle as the border for a rounded Form?](https://stackoverflow.com/a/56533229/7444103) -- To resize it, see, e.g., [How to move and resize a form without a border?](https://stackoverflow.com/q/2575216/7444103) -- Using custom Themes: [Fancy Windows Forms](https://www.codeproject.com/articles/33716/fancy-windows-forms) (heavy). – Jimi May 12 '22 at 17:47

0 Answers0