Results 1 to 9 of 9

Thread: Moving form to secondary monitor? :S

  1. #1

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172

    Moving form to secondary monitor? :S

    How can i move my form to a secondary monitor?
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    If in a dual-display setup, I imagine you get the bounds of the primary screen , and set the x,y location of the form to greater than the x bound of the primary display.
    VB Code:
    1. Me.Location = _
    2.         New Point(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Y)
    Last edited by nemaroller; Sep 28th, 2003 at 09:29 AM.

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    let me know if that works...

  4. #4

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    it works.. IF your secondary monitor is set to the right side of the primary...

    you can reposition your secondary monitor to be on top of the other (thus having to move the mouse out of the top of the screen) or to the left of the screen... :S

    isnt there a way to just put it on the other monitor?

    (ofcourse dragging helps but my app has to do it on his own :S

    hmm ok another question is how to get info from the secondary screen anyway :S
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  5. #5
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Well, IF, the system has two monitors:

    This SHOULD do it, but let me know because im curious myself.
    VB Code:
    1. Me.Location = New Point(Screen.AllScreens(1).Bounds.X, Screen.AllScreens(1).Bounds.Y)

  6. #6

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    Like a Glovaaaah (ace ventura :P)

    works great thank u ... lets add that to my snippet library :P thanks
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  7. #7
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    I'm gona have to get me a dual-display setup for coding some time (got one at work, but not home).

  8. #8

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    well i have it at work too.. and found an old 15'' and have an ati radeon 9700 pro.. thus i thought hey why not make use of it ..
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  9. #9
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    VB Code:
    1. If Screen.AllScreens.Length > 1 Then _
    2.             Me.Location = New Point(Screen.AllScreens(1).Bounds.X, Screen.AllScreens(1).Bounds.Y)

    Should be that I guess in case there is only one display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width