B
b.engelbrecht
Hello,
I think I found a bug in the Windows forms engine related to multiple
monitors and I wonder if anyone saw that too. If yes, any workaround?
Steps to reproduce:
1. connect two monitors to your PC, extend your desktop to both
monitors
2. In the monitor settings dialog, drag monitor 2 so that it is to the
left of monitor 1. This makes x screen coordinates of monitor 2
negative. Also make sure monitor 2 extends above monitor 1, so that top
y coordinate is negative as well. This happens to be my default setup,
I have a larger monitor to the left of my laptop screen.
3. Open a sizeable modal dialog in a dotnet 1.1 Windows forms
application.
4. Click and hold the left mouse button on the title bar of the dialog,
move it to monitor 2.
5. Now release the mouse.
6. Move the mouse over the title bar area, notice what happens.
What I see:
- If the window is on the left screen and its top is above the top
border of monitor 1, mouse cursor is always NW-SE resize cursor over
the title bar unless the dialog is maximized. If the title bar is
partially above the y=0 coordinate, the strange behavior is only
apparent for the part where y is negative.
- it is no longer possible to move the dialog by dragging the title
bar. Attempting to do so resizes the window rather than moving it
- it is not possible to use the [x] button to close the window unless
it is maximized
- normal behavior will only resume after you manage to move the window
back to monitor 1 by resizing it. This will not be possible at all
unless the "show in taskbar" property of the Window is set and maximize
is allowed.
I think I found a bug in the Windows forms engine related to multiple
monitors and I wonder if anyone saw that too. If yes, any workaround?
Steps to reproduce:
1. connect two monitors to your PC, extend your desktop to both
monitors
2. In the monitor settings dialog, drag monitor 2 so that it is to the
left of monitor 1. This makes x screen coordinates of monitor 2
negative. Also make sure monitor 2 extends above monitor 1, so that top
y coordinate is negative as well. This happens to be my default setup,
I have a larger monitor to the left of my laptop screen.
3. Open a sizeable modal dialog in a dotnet 1.1 Windows forms
application.
4. Click and hold the left mouse button on the title bar of the dialog,
move it to monitor 2.
5. Now release the mouse.
6. Move the mouse over the title bar area, notice what happens.
What I see:
- If the window is on the left screen and its top is above the top
border of monitor 1, mouse cursor is always NW-SE resize cursor over
the title bar unless the dialog is maximized. If the title bar is
partially above the y=0 coordinate, the strange behavior is only
apparent for the part where y is negative.
- it is no longer possible to move the dialog by dragging the title
bar. Attempting to do so resizes the window rather than moving it
- it is not possible to use the [x] button to close the window unless
it is maximized
- normal behavior will only resume after you manage to move the window
back to monitor 1 by resizing it. This will not be possible at all
unless the "show in taskbar" property of the Window is set and maximize
is allowed.