This is a very simple snippet and will work with all versions of Visual Basic.NET.
IF you want to easily and quickly center your Form in relation to the computer screen, just simply call the Subroutine below.
' 'This Sub is available in All versions of VB.NET. Me.CenterToScreen()
That’s all there is to it. Just simply call that Sub whenever you need or want your application/form to center itself while it is running in runtime mode.