Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to develop a Windows CE application in C# in .NET CF2.0 and wanted to know how to get an array of screens. Normally this is done with Screen.AllScreens, but in CF2.0 that is not available. How could I translate Screen.AllScreens to get an array of screens in CF2.0? Thanks.


What I have tried:

I have searched the internet but couldn't find it so far.
Posted

It's been a long time since I did anything with Win CE, but ... as far as I remember, you can't have multi screens at all - and that would explain why Screen.AllScreens doesn't exist.

I suspect you are going to have to rethink your project to an extent.
 
Share this answer
 
Comments
Michi Elsno 10-Apr-24 2:48am    
Wauwie, I totally didn't expect someone to respond on this because it is pretty old stuff. Thank you. I have a "crush" on Windows CE with CF2.0 and if you would like to know why then do read my story here: https://maplorer.com/mydash.html and here https://forum.maplorer.com/viewtopic.php?f=9&t=445 . Now, regarding your remark, I first thought the same, since I read in Wiki that Windows 98 was the first to support multiple monitors systems and that Windows CE was first announced in 1996. But yesterday I found EnumDisplayDevices which is supported by Windows CE 5.0. It didn't solve my problem though, but it suggests that Windows CE might be capable to work with multi-display/monitor systems.
Nostalgic trip...

I used Google Search: windows ce 5.0 get list of screens - Google Search[^]

and found this: GetSystemMetrics (Windows CE 5.0) | Microsoft Learn[^]

Has this paramater:
Quote:
SM_CMONITORS Number of display monitors on the Windows CE-based device. Supported in Windows CE .NET 4.0 and later.

This may be what you are looking for...
 
Share this answer
 
Comments
Michi Elsno 10-Apr-24 3:26am    
First of all please read my reply to OriginalGriff, to give you some background info on this. Anyhow, thank you for your reply. Cool!! I will check this out and let you know.
PS I hope to find people who still work with CF2.0. I'm pretty sure that people like Chris Tacke would know the exact answers to many of my questions about CF2.0 by heart, but I guess they are no longer following stuff like this anymore.
Graeme_Grant 10-Apr-24 5:05am    
Hope it helps

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900