bugDotGNU Portable.NET - Bugs: bug #10854, Form.DesktopLocation not consistent


You are not allowed to post comments on this tracker with your current authentication level.

bug #10854: Form.DesktopLocation not consistent

Submitter:  Erich Kitzmüller <ammoq>
Submitted:  Mon 01 Nov 2004 01:44:15 AM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Tue 02 Aug 2005 10:14:19 AM UTC, comment #3: 

Revisited this one and I am unable to figure out exactly what is causing this.  The problem itself is clearly demonstrated with the test case code in comment #2.  The left/top fields in Control.cs indicate that they do in fact include the window dressings but I suspect another method somewhere may be altering the values.  Will revalidate this after Rich commits his work.

Deryk Robosson <drobosson>
Group Member
Tue 02 Nov 2004 08:42:21 PM UTC, comment #2: 

using System.Windows.Forms;
using System;
using System.Drawing;

public class FormTest : System.Windows.Forms.Form {
public FormTest() {
Button b = new  Button();
b.Left = 20;
b.Top = 20;
b.Text = "Click me";
b.Click += new System.EventHandler(ButtonClicked);
Closed += new System.EventHandler(FormClosed);

public void ButtonClicked(object sender, EventArgs e) {
FormTest f = new FormTest();
f.Visible = true;
f.DesktopLocation = DesktopLocation; should open new form at same position
Visible = false;

public void FormClosed(object sender, EventArgs e) {

static void Main() {
Application.Run(new FormTest());

Erich Kitzmüller <ammoq>
Tue 02 Nov 2004 11:58:36 AM UTC, comment #1: 

Do you have a test case that exhibits this behavior?

Deryk Robosson <drobosson>
Group Member
Mon 01 Nov 2004 01:44:15 AM UTC, original submission:  

"set" sets the corner of the outer border (including the border given by the window manager), but "get" returns the corner of the inner window (without the border drawn by the window manager).

Erich Kitzmüller <ammoq>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #912:  FormTest.cs added by ammoq (695B - text/x-csharp)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-08-02 drobosson StatusNone Postponed
2004-11-02 ammoq Attached File- Added FormTest.cs, #1829

Back to the top

Powered by Savane 3.13-c54d.
Corresponding source code