Easy way to Center the applications Form during Runtime in VB.Net.

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
 

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.

Jason

Leave a Reply