Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Dual monitors and fullpage

Dual monitors and fullpage

Scheduled Pinned Locked Moved Visual Basic
javascripthelpquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Spaz80
    wrote on last edited by
    #1

    I have a web page that uses javascript to open two new web pages. The two new pages should be opend in full screen on dual monitors. But if I move one of them to the right monior and set Fullscreen = true, it opens over the other one. How can I get the two web pages to open in different monitors. I want to view one web page in each monitor Please help.... Spaz

    D 1 Reply Last reply
    0
    • S Spaz80

      I have a web page that uses javascript to open two new web pages. The two new pages should be opend in full screen on dual monitors. But if I move one of them to the right monior and set Fullscreen = true, it opens over the other one. How can I get the two web pages to open in different monitors. I want to view one web page in each monitor Please help.... Spaz

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You can use the System.Windows.Forms.Screen, AllScreens property to get an array of monitors, each with it's own WorkingArea (hint, hint!), to set the Location and Size of each of your forms to different monitors. This will enumerate the screens and show you their working areas:

      Private Sub Form_Load(blah, blah) Handles Me.Load
      For Each Scr As Screen In System.Windows.Forms.Screen.AllScreens
      Debug.WriteLine(String.Format("Screen {0} has a working area of {1}", Scr.DeviceName, Scr.WorkingArea))
      Next
      End Sub

      RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You can use the System.Windows.Forms.Screen, AllScreens property to get an array of monitors, each with it's own WorkingArea (hint, hint!), to set the Location and Size of each of your forms to different monitors. This will enumerate the screens and show you their working areas:

        Private Sub Form_Load(blah, blah) Handles Me.Load
        For Each Scr As Screen In System.Windows.Forms.Screen.AllScreens
        Debug.WriteLine(String.Format("Screen {0} has a working area of {1}", Scr.DeviceName, Scr.WorkingArea))
        Next
        End Sub

        RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        S Offline
        S Offline
        Spaz80
        wrote on last edited by
        #3

        Thanks for the reply Using youre code I get information about the primary screen. Could you please help me with what I should do next to show my two webpages in different monitors. I would like to display them fullscreen. PS The web page in the main screen is fullscreen, but if I set the other webpage to full screen it displays over the firs webpage, how do I get it to display in the secondary monitor? Spaz

        D 1 Reply Last reply
        0
        • S Spaz80

          Thanks for the reply Using youre code I get information about the primary screen. Could you please help me with what I should do next to show my two webpages in different monitors. I would like to display them fullscreen. PS The web page in the main screen is fullscreen, but if I set the other webpage to full screen it displays over the firs webpage, how do I get it to display in the secondary monitor? Spaz

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Spaz80 wrote:

          Could you please help me with what I should do next to show my two webpages in different monitors. I would like to display them fullscreen.

          I don't have a dual screen machine to test any code on. Sorry... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          S 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Spaz80 wrote:

            Could you please help me with what I should do next to show my two webpages in different monitors. I would like to display them fullscreen.

            I don't have a dual screen machine to test any code on. Sorry... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            S Offline
            S Offline
            Spaz80
            wrote on last edited by
            #5

            No prob Could you describe a way to solve my problem? Hint or tips... I am completely lost about what to do. I can place my second webapp where I want on the secondary monitor. But not get it to go fullscreen. Beacuse it overlaps the first webpage.. Thanx Spaz

            D 1 Reply Last reply
            0
            • S Spaz80

              No prob Could you describe a way to solve my problem? Hint or tips... I am completely lost about what to do. I can place my second webapp where I want on the secondary monitor. But not get it to go fullscreen. Beacuse it overlaps the first webpage.. Thanx Spaz

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Well, I had to wait until the boss the left town so I could put together a dual monitor system. In the Native (Windows controlled) dual monitro setup, I don't have any problems with maximizing a form, or an IE browser window, and having it take up the correct monitor. If I drag a window to the other monitor and maximize it, it stays on the monitor. Perhaps you'll have to play with your dual monitor configuration? I have no idea 'cause, truth be told, I can't get this setup to fail in the way you're describing! RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups