项目界面设计的时候,发现在设置button的enabled=false后,原本设计的字体颜色跟预设的不一样,查了一些资料后,在网上看到这样一段代码: [System.Runtime.InteropServices.DllImport("user32.dll")] public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int wndproc); [System.Runtime.InteropServices.Dll
https://stackoverflow.com/questions/2607508/how-to-control-docking-order-in-winforms Go to View -> Other windows -> document outline. In that window drag the controls so the docking is as you like it to be. 顺序是倒序的 this.pnlNavigator.BackColor = Syste