Jump to content


Visual Studio 2005, display in secondary monitor help.


5 replies to this topic

#1 thase

    New Member

  • Members
  • Pip
  • 2 posts

Posted 11 December 2006 - 12:31 AM

Hi all,

I have a form that is a playlist control for powerpoint slides that I would like to run as a control panel on the primary display monitor, but have the form display and run the powerpoint slides on the secondary display monitor. I am using a dual monitor video card. Could someone be kind enough to point me in the right direction as to how to accomplish this.

Thanks in advance.
Thase

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 11 December 2006 - 02:07 AM

If you're writing this in straight C/C++, here is an MSDN page that might be useful: Multiple Display Monitors. There are WinAPI functions that let you figure out what parts of your virtual desktop correspond to which monitor. If you're using .NET, the equivalent functionality is in System.Windows.Forms.Screen.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 thase

    New Member

  • Members
  • Pip
  • 2 posts

Posted 11 December 2006 - 04:06 AM

Thank you for the repy, however I perhaps need to clarify my initial question.

I am writing the application in visual basic,

I'm using the Microsoft.Office.Interop.PowerPoint object
I need to make the output of the slideshow go to the second monitor.

Microsoft.Office.Interop.PowerPoint.SlideShowWindow has some properties like height, width, and left.
How do I determine which values to set these to ?, to get the output to go to the second monitor?

The details I can get from the "Screen" class doesnt really mesh into these values in a way I understand.

I also need to figure out how to make an *.exe run onto the second monitor as well.

Any help you can provide is very much appreciated!

#4 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 11 December 2006 - 06:10 AM

Well, you should find the screen you want, use its Bounds property to get the rectangle that the screen covers on the virtual desktop, and send your slideshow there.
reedbeta.com - developer blog, OpenGL demos, and other projects

#5 steinb

    New Member

  • Members
  • Pip
  • 4 posts

Posted 10 December 2007 - 10:40 AM

I'm having a related problem:

I have two monitors on a windows computer, but only one of them is actually usable as normal desktop / window space; the other one is actually just a tiny LCD used in a laser experiment.

I want to write a crude program, preferably in C or C++, that will allow me to display images on that secondary monitor.

I'm reluctant to use the approach of having an extended windows desktop, as any windows or dialog boxes that end up there will be undesired and illegible.

Is there still an easy way to paint on the second monitor? Does anyone happen to have sample code for painting to a screen not included in the windows desktop?

#6 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 10 December 2007 - 05:03 PM

See my post in your other thread
reedbeta.com - developer blog, OpenGL demos, and other projects





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users