Article View: borland.public.delphi.winforms.controls.using
Article #507How to show winform with negative location values
From: Sebastian Gingter
Date: Thu, 12 Aug 2004 11:03
Date: Thu, 12 Aug 2004 11:03
21 lines
1634 bytes
1634 bytes
Hello,
I have the following problem creating a screen saver:
I create a windows form that spans multiple monitors. In the
constructor I resize the form to match the whole desktop - that works
fine. As the last step, I change Location.X and Location.Y to the offset
of the upper left edge of the desktop. In my testing case this is -1024,
-768, since I moved the secondary display to the upper left of my
primary screen.
The problem is, even when the values are set correctly (at least the
debugger tells me that), the values will be reset and the window will be
displayed at 0,0.
How can I force the form to be shown at the location I define in the
constructor?
Thx,
Sebastian
Technical Details
Message-ID:
<411b4e6b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,27f1c4168f4e12c9,start X-Google-Attributes: gid1eff29,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 12 Aug 2004 13:03:11 +0200 From: Sebastian Gingter <sebastian@gingter.org> User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.winforms.controls.using Subject: How to show winform with negative location values Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.136.231.93 Message-ID: <411b4e6b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1092308587 80.136.231.93 (12 Aug 2004 04:03:07 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail