Is it possible to change the style of a WinForm border? I know that if the border is removed, it takes away the functionality to resize the program. Therefore is there a way to change the style of it, but keep it resizable?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
I dont think there is a direct way to do this.
But, you could set the form border style to None. And implement the resizing in your form(which I don't think its difficult)
First write this in the InitializeComponent():
Then, use a method similar to this. In this case, my form is only resizable from the right side, but should be easy to make it resize from any side:
What you seek is not simple because the border is drawn by the operating system. However, there is a library on CodePlex that does make possible to do this very thing.
Drawing Custom Borders in Windows Forms
P.S: Have not yet tested it
Hope you've set FormBorderStyle to None