VS中如何美化界面 去掉窗体边框

来源:百度知道 编辑:UC知道 时间:2024/05/13 16:33:32
做一个类似QQ的软件 但是VS中设计的窗体都是带有边框的

如何去掉边框?
使用皮肤控件的话 大家能不能推荐款给我

把Form的FormBorderStyle属性改成None就可以了
或者用代码
this.FormBorderStyle = FormBorderStyle.None;

去掉边框的话,会遇到很多问题,建议你用皮肤控件来做

要移动无边框窗体,代码是
Private Const WM_NCLBUTTONDOWN = &HA1
Private Declare Function SendMessage& Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any)
Private Declare Function ReleaseCapture Lib "user32" () As Long

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
ReleaseCapture
SendMessage hwnd, WM_NCLBUTTONDOWN, 2, 0

End Sub