Author Topic: Start Teamviewer from own Application ...  (Read 5484 times)

martinkrause

  • Newbie
  • *
  • Posts: 1
Start Teamviewer from own Application ...
« on: November 30, 2012, 05:21:23 AM »
Hi , i have an VB.Net Application, from them i start teamviewer like the following code.

  Dim myProcess1 As New Process
            Try
                myProcess1.StartInfo.FileName = sTeamviewerFilename
                myProcess1.StartInfo.WorkingDirectory = TeamViewerPath
                myProcess1.StartInfo.Arguments = "-i " & sTeamviewerID.ToString.Trim & " --Password " & sPassword.Trim

                myProcess1.Start()
                myProcess1.WaitForExit()
                myProcess1.Dispose()

My Problem is, that teamviewer starts,call remote computer and for a short moment i see the remote desktop. teamviewer closed the current session
but the main programm still running.
but my programm is still in the waitforexit loop.

when i call teamviewer as normal i do , enter the id and password that i already used above, it works fine.
any idea what the problem is?
best regards martin

 

anything