This is in a 32-bit prefix with dotnet 4.5, speech.sdk and vbrun6 installed via winetricks.
The code is in the form load procedure for the main (default) form:
Code: Select all
If Screen.AllScreens.Length > 1 Then
Dim screen As Screen
'Show the form on second screen
screen = Screen.AllScreens(1)
_2NDMonitor.Location = Screen.AllScreens(1).Bounds.Location
_2NDMonitor.StartPosition = FormStartPosition.Manual
_2NDMonitor.Location = screen.Bounds.Location + New Point(1, 1)
_2NDMonitor.PictureBox1.Refresh()
SECOND_MONITOR = True
_2NDMonitor.Enabled = True
_2NDMonitor.Visible = False
_2NDMonitor.Show()
I'm using simple usb-c to hdmi adaptor with a casio projector as the 2nd monitor.
Thanks for any help!