In a project add 2 command buttons.

Add this code:
VB Code:
  1. Option Explicit
  2. Private Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long
  3. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
  4. Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
  5.  
  6. Private Type RECT
  7.         Left As Long
  8.         Top As Long
  9.         Right As Long
  10.         Bottom As Long
  11. End Type
  12.  
  13.  
  14. Private Sub Command1_Click()
  15. Shell "C:\winnt\system32\calc.exe", vbNormalFocus
  16. End Sub
  17.  
  18.  
  19. Private Sub Command2_Click()
  20. Dim hwnd&, width&, height&
  21. Dim R As RECT
  22.  
  23. hwnd = FindWindow("scicalc", vbNullString)
  24. GetWindowRect hwnd, R
  25. width = R.Right - R.Left
  26. height = R.Bottom - R.Top
  27. 'center on screen
  28. MoveWindow hwnd, Screen.width / Screen.TwipsPerPixelX / 2 - width / 2, Screen.height / Screen.TwipsPerPixelY / 2 - height / 2, width, height, 1
  29.  
  30. End Sub

Now click the first command button to launch windows calculator, click the next button to position in the center of the screen.