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
Charles7
49 discussion posts
.x and .y need to be .X and .Y
Fixed.
Glad to hear you were able to get it sorted out. Thanks!