I am a beginner. I would like to ask how can I center Panel for all resolutions. I have panel which includes other panels and its called ParentPanel. I have tryed to add to designer this stuff
ParentPanel.Location = new Point(
this.ClientSize.Width / 2 - ParentPanel.Size.Width / 2,
this.ClientSize.Height / 2 - ParentPanel.Size.Height / 2);
ParentPanel.Anchor = AnchorStyles.None;
but it said : the type of namescape "point" could not be found, so I used help and it changed New point
to New System.Drawing.Point
but still it didnt work :/
My Form is fullscreen and its not sizebale so, WindowsState is Maximazed and StartPosition is CenterScreen.
Can you help me please?