Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 居中对齐面板和MDI子窗体_C#_Winforms - Fatal编程技术网

C# 居中对齐面板和MDI子窗体

C# 居中对齐面板和MDI子窗体,c#,winforms,C#,Winforms,我想将面板和MDI父容器内的MDI子窗体居中对齐 myPanel.Left = (this.ClientSize.Width - myPanel.Width) / 2 ; myPanel.Top = (this.ClientSize.Height - myPanel.Height) / 2; 这与您正在寻找的类似吗?您正在使用什么UI技术?我正在使用VCyes处理windows窗体。。嘿,这就是我用来在HTML\CSS中居中div的技术

我想将面板和MDI父容器内的MDI子窗体居中对齐

myPanel.Left = (this.ClientSize.Width - myPanel.Width) / 2 ;
myPanel.Top = (this.ClientSize.Height - myPanel.Height) / 2;

这与您正在寻找的类似吗?

您正在使用什么UI技术?我正在使用VCyes处理windows窗体。。嘿,这就是我用来在HTML\CSS中居中div的技术