SetDesktopLocation - X position (VB 2010)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hannes3093
    New Member
    • Mar 2023
    • 1

    #1

    SetDesktopLocation - X position (VB 2010)

    Hi, I'm trying to fix a program SetDesktopLocat ion code for a dual-screen setup.
    The program keeps opening in the 1st screen (X-position = 0), even though I set the value to 1280.

    Code:
    Me.SetDesktopLocation(1280, 0) 
    Me.Location = New Point(1280, 0)
    Me.WindowState = FormWindowState.Maximized
    The primary monitor resolution is 1280 x 720 by the way, so it should open on the 2nd screen.

    Please advise?
Working...