1)窗口去除边框 在组件属性中FormBorderStyle设为None 2)窗口随着鼠标移动而动 添加引用using System.Runtime.InteropServices; 在初始化控件{InitializeComponent();}代码后添加 [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public stat
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WinGPChat.master { public