CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2003
    Posts
    8

    Multiple Monitors and Programs

    Hi

    I know how to start programs from within vb but i was wondering does anyone know how to start a program from vb on a different monitor. I then need to be able to close the program on that monitor.

    For Example starting media player on monitor 1, outlook on monitor 2, powerpoint on monitor 3 and so on.

    Any help would be appreciated

    Thanks

  2. #2
    Join Date
    Feb 2000
    Location
    Indianapolis, IN
    Posts
    123
    well, unless I am mistaken, when you have multiple monitors Windows treats it as one giant desktop. So starting different apps on different monitors would simply be a matter of positioning (i.e. start media player at 0,0, outlook at 900,0 and so on)

    Yes/No??

    Tobey

  3. #3
    Join Date
    Jun 2003
    Posts
    8
    Yes that is correct Tobey,

    but how do i open a program say using shell or shell execute and specify the position of the program for a particular set of coordinates.

    Certainly i can specify the left and top properties of vb forms and position them on the different monitors but i am not sure how to do this as mentioned above.

    I have found that setting a reference to, say, the powerpoint object library, i can use the top and left properties of certain objects and position them at different coordinates but i was hoping to use a shell command or like to do this.

    Any help is appreciated.

    Thanks

    RG

  4. #4
    Join Date
    May 2003
    Posts
    30

    multiple monitors

    You need buy multiple monitors display card and connect three monitors.


    Jimmy
    www.viscomsoft.com

  5. #5
    Join Date
    Jun 2003
    Posts
    8
    Yes i already have multiple display cards and have the multiple monitor setup working. I am using win2k as OS.

    In my research I have found that i can make it work by using the APIs shellexecuteex command to open the file, then using findwindow(), getwindowrect() and movewindow(), I can position the files at different coordinates, i then use terminateprocess() to close the file. This all seems abit messy, but if anyone knows of a better way to do this it I would greatly appreciate any suggestions.

    Thanks
    RG

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

Featured