<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: why  'System.Drawing.Rectangle.y' is inaccessible due to its protection level</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=2a7bbb2c-8aad-46d5-87b5-406475f5047c" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=2a7bbb2c-8aad-46d5-87b5-406475f5047c</link>
<description>DisplayFusion RSS: why  'System.Drawing.Rectangle.y' is inaccessible due to its protection level</description>
<lastBuildDate>Sat, 20 Jun 2026 08:06:45 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=2a7bbb2c-8aad-46d5-87b5-406475f5047c</generator>
<item>
<title>RE: why  'System.Drawing.Rectangle.y' is inaccessible due to its protection level</title>
<link>https://www.displayfusion.com/Discussions/View/why-systemdrawingrectangley-is-inaccessible-due-to-its-protection-level/?ID=2a7bbb2c-8aad-46d5-87b5-406475f5047c#3</link>
<pubDate>Thu, 07 Nov 2019 02:21:16 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/why-systemdrawingrectangley-is-inaccessible-due-to-its-protection-level/?ID=2a7bbb2c-8aad-46d5-87b5-406475f5047c#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Glad to hear you were able to get it sorted out. Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Glad to hear you were able to get it sorted out. Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: why  'System.Drawing.Rectangle.y' is inaccessible due to its protection level</title>
<link>https://www.displayfusion.com/Discussions/View/why-systemdrawingrectangley-is-inaccessible-due-to-its-protection-level/?ID=2a7bbb2c-8aad-46d5-87b5-406475f5047c#2</link>
<pubDate>Wed, 06 Nov 2019 20:29:01 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/why-systemdrawingrectangley-is-inaccessible-due-to-its-protection-level/?ID=2a7bbb2c-8aad-46d5-87b5-406475f5047c#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[.x and .y need to be .X and .Y
Fixed.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
.x and .y need to be .X and .Y<br/>
<br/>
Fixed.
</div>
]]></content:encoded>
</item>
<item>
<title>why  'System.Drawing.Rectangle.y' is inaccessible due to its protection level</title>
<link>https://www.displayfusion.com/Discussions/View/why-systemdrawingrectangley-is-inaccessible-due-to-its-protection-level/?ID=2a7bbb2c-8aad-46d5-87b5-406475f5047c</link>
<pubDate>Wed, 06 Nov 2019 20:21:10 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/why-systemdrawingrectangley-is-inaccessible-due-to-its-protection-level/?ID=2a7bbb2c-8aad-46d5-87b5-406475f5047c</guid>
<category>DisplayFusion</category>
<description><![CDATA[public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
Rectangle rabid  = BFS.Monitor.GetMonitorBoundsByWindow(windowHandle);
//Rectangle rabid = BFS.Window.GetBounds(windowHandle);
int cbx = rabid.x;
int cby = rabid.y;
}
}
I just want the current moni...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
public static class DisplayFusionFunction<br/>
{<br/>
    public static void Run(IntPtr windowHandle)<br/>
    {<br/>
        Rectangle rabid  = BFS.Monitor.GetMonitorBoundsByWindow(windowHandle); <br/>
        //Rectangle rabid = BFS.Window.GetBounds(windowHandle);<br/>
        int cbx = rabid.x;<br/>
        int cby = rabid.y;<br/>
    }<br/>
}<br/>
<br/>
I just want the current monitors top left coordinate (adjusted for taskbar etc)<br/>
GetBounds works <br/>
GetMonitorBoundsByWindow throws error<br/>
<br/>
Compile Failed.<br/>
Line 10: 'System.Drawing.Rectangle.x' is inaccessible due to its protection level<br/>
Line 11: 'System.Drawing.Rectangle.y' is inaccessible due to its protection level
</div>
]]></content:encoded>
</item>
</channel>
</rss>