I have tried the following codes. The maximised window worked but the centralizing failed. How centralize a form in maximised window?
Me.WindowState = FormWindowState.Maximized
Me.Left = (Screen.PrimaryScreen.Bounds.Width \ 2) - (Me.Width \ 2)
Me.Top = (Screen.PrimaryScreen.Bounds.Height \ 2) - (Me.Height \ 2)
Me.StartPosition = FormStartPosition.CenterScreen