Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Charles7
49 discussion posts
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 monitors top left coordinate (adjusted for taskbar etc)
GetBounds works
GetMonitorBoundsByWindow throws error

Compile Failed.
Line 10: 'System.Drawing.Rectangle.x' is inaccessible due to its protection level
Line 11: 'System.Drawing.Rectangle.y' is inaccessible due to its protection level
Nov 6, 2019  • #1
User Image
Charles7
49 discussion posts
.x and .y need to be .X and .Y

Fixed.
Nov 6, 2019  • #2
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Glad to hear you were able to get it sorted out. Thanks!
Nov 7, 2019  • #3
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)