Function Findwindow(ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
End Function
<DllImport("user32")> _
Function MoveWindow(ByVal hWnd As String, ByVal x As Integer, ByVal y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal bRepaint As Integer) As Integer
End Function
Sub Test()
Dim hWnd As Integer = Findwindow(Nothing, "Untitled-Nodepad")
If hWnd <> 0 Then MoveWindow(hWnd, 0, 0, 600, 300, 1)