I have this application (build with vb 2010, .net 4.0) and when I click on the show second screen button, it should open a second form on the second monitor (beamer, or whatever) and when no second monitor available message displayed.
But at this moment the second form opens still on the 1 monitor (parent).
This is the code I use now:
I've got this piece of code from a website and should work, but it doesn't.
Any idea?
But at this moment the second form opens still on the 1 monitor (parent).
This is the code I use now:
VB.NET:
Dim screen As Screen
'Show second form on second screen
screen = screen.AllScreens(1)
SecondForm.StartPosition = FormStartPosition.Manual
SecondForm.Location = screen.Bounds.Location + New Point(100, 100)
SecondForm.Show()
I've got this piece of code from a website and should work, but it doesn't.
Any idea?