Screen.AllScreen

P

Peter Larsen [CPH]

Hi,

I have a forms application that run for days, weeks or until the computer is
restarted.
The computer have 2 screens and i use Screen.AllScreen to control where to
positionize the app.

Normally this works just fine, but sometimes (after a while) the
Screen.AllScreen property starts to return a wrong number of attached
screens. I have 2 screens, but AllScreen return 1.

Is this a known bug and/or is there a way solve this issue ??

Thank you in advance.
BR
Peter
 
A

Armin Zingler

Am 15.04.2010 10:35, schrieb Peter Larsen [CPH]:
Hi,

I have a forms application that run for days, weeks or until the computer is
restarted.
The computer have 2 screens and i use Screen.AllScreen to control where to
positionize the app.

Normally this works just fine, but sometimes (after a while) the
Screen.AllScreen property starts to return a wrong number of attached
screens. I have 2 screens, but AllScreen return 1.

Is this a known bug and/or is there a way solve this issue ??

So it returns 1 while you are looking at two working screens (not working in clone mode)?
Otherwise: Never heard of it. The only thing that this reminds me of are problems
related to Video drivers, video cards and video cables. I myself had
the problem of the screen sometimes turning black. That was
due to a broken output on the video card. Just this behavior maybe
won't have caused the problem you've described, but I mean, the
cause should be at that end, not inside the Framework. Just anticipating,
maybe I will be proven wrong.

Look if it has been reported already:
https://connect.microsoft.com/VisualStudio/feedback/
 
P

Peter Larsen [CPH]

Hi Armin,

Thank you for you comment on this.

It is two normally attached screens.
When the problem occur, i can start a new instance of the same program and
it works as expected (detecting 2 screens).

A funny thing is - today, the very same instance (that didn't work
yesterday), does work today.
It is still the same instance - no restart - no nothing.

/Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top