Hallo zusammen,
Ich hab da mal ein Problem:
Ich versuche aus meinem Program ein anderes Program auf den 2. Bildschirm zu verschieben.
Jetzt habe ich das Problem dass, das Verschieben beim ersten mal Funktioniert aber beim 2. mal nicht mehr.
Danke schon vorab für die Mühen.
Ich hab da mal ein Problem:
Ich versuche aus meinem Program ein anderes Program auf den 2. Bildschirm zu verschieben.
Jetzt habe ich das Problem dass, das Verschieben beim ersten mal Funktioniert aber beim 2. mal nicht mehr.
Visual Basic-Quellcode
- Public Sub TmrMonitor(ByVal sender As Object, ByVal e As EventArgs)
- If Warten Then
- For Each Me.oProcess In oProcessList
- Debug.Print(oProcess.MainWindowTitle)
- If oProcess.MainWindowTitle.Contains("Bankarbeitsplatz") Then
- fenster = oProcess.MainWindowHandle
- ShowWindow(fenster, 1)
- SetForegroundWindow(fenster)
- System.Threading.Thread.Sleep(400)
- If Screen.AllScreens.Length = 2 Then
- Select Case Monitor
- Case 1
- Case 2
- SetWindowPos(oProcess.MainWindowHandle, 0, 1280, 10, 0, 0, &H1)
- End Select
- End If
- Warten = False
- End If
- Next
- End If
- End Sub
Danke schon vorab für die Mühen.
There is no CLOUD - just other people's computers
Q: Why do JAVA developers wear glasses?
A: Because they can't C#
Daily prayer:
"Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."
Q: Why do JAVA developers wear glasses?
A: Because they can't C#
Daily prayer:
"Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."