#### Archived

This topic is now archived and is closed to further replies.

# Setting the mode with multiple monitors

This topic is 5722 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Alright, so I''m trying to set the mode on a secondary monitor, and I''m having trouble. If I don''t include SetFocusWindow, it''ll set the primary display, even though I specify the secondary device. I have another form that enumerates the devices and sets up all the variables. This is my code (By the way, this app is in C#) device = Microsoft.DirectX.DirectDraw.Device
try
{
device.SetCooperativeLevel(Window, CooperativeLevelFlags.FullscreenExclusive
| CooperativeLevelFlags.SetFocusWindow);
device.SetDisplayMode(Width, Height, BPP, 60, false);
}
catch
{
device = null;
return false;
}

On a separate subject, do you notice the sloppy documentation for DDraw? I look up the SetCooperativeLevel enumeration, and it just lists the items! No description whatsoever.

##### Share on other sites
Hmmm... I put that in a code block, but... Oh well, it''s still readable.

##### Share on other sites
One more time around from the top

1. 1
2. 2
Rutin
20
3. 3
4. 4
frob
15
5. 5

• 10
• 9
• 13
• 9
• 33
• ### Forum Statistics

• Total Topics
632592
• Total Posts
3007289

×