Specifying which screen my application should open on - wpf

I've created two WPF applications that are designed to run full screen on the same server with dual monitors.
Is it possible to specify which application opens on which screen?
I currently have the executable on different monitors desktop which works but ideally I'd like to control this programmatically.
If that isn't possible, then I could move the application into a WPF web client and open in two full screen Internet Explorer windows but again I'd need to specify which ones load on which screens.
Thanks

You will have to set the Window.StartupLocation to manual for both of your exe's and then you will have to manually set the Window.Top and Window.Left to the coordinates for the monitor you want each to show up on.
You will probably want to use the Screen class to determine where each screen is at
http://msdn.microsoft.com/en-us/library/system.windows.forms.screen.aspx

Related

How do I ensure consistent image quality on RDP?

I am running a UI automation program on the remote machine itself. This UI automation clicks buttons based on image recognition. I realize the image quality that exe recognizes is based on the image being displayed onto remote desktop. I tested this by having the same UI automation program take a screenshot when logged via RDP using 8-bit color. The screenshot taken shows 8-bit color depth even when viewed on another PC with 32-bit color depth.
Click on Start -> Run. type mstsc. The RDC connection windows opens,
by clicking edit / options , head over to display tab and under Colours, select Highest quality (32-bit). and save your setting

my custom answer box not working like in the windows livecode

Hi Is there a way that my custom answer/ask box will appear the same on a smartphone? It was deployed on every screen on the phone and did not look like a computer (I used a substack)
Mobile phones OS are as a single stack, no way to show other stacks. So any answer dialogue is the OS standard style.
Otherwise ask to http://ekkotek.com/index.php/products/livecode-tools/wheelib
The developed custom gui for mobile.
In mobile systems, the stacks always occupy the entire screen space. So if you want to use a custom answer.
You must simulate a floating window using a group.
Try creating a group with all the substack controls you already have. Now instead of calling the substack, what you should do is show and hide the group.
Create a graph inside the group and before making this group visible, establish the rectangel of this graph to the rectangel of the current card. Then put your dialog window in the center and in this way you will have a floating and personalized window.

Mono GUI Window can not be refreshed after moving from one window to another window

I have ubuntu 12.04 and mono 2.10.8.1 in my Linux PC.
I have one .NET application which continuously capturing image from camera connected in my development board.
It is working fine without any issue if i don't move my GUI windows which is continuously capturing image. But when i moves the tab to another window and get back to mono GUI window at that time GUI can not be refreshed and doesn't display live image from camera.
Also, I have also put one panel in which some data like frames and seconds are also going to displayed fine when application is running properly without moving tab to another window. But when i moved the tab into another window at that time same issue caused here that frames are also not going to refreshed in to that panel.
SO, does any one have idea about what is happening in this condition?
Is there any limitation about mono to refresh GUI window or something else?
Please let me know if any one have update as soon as possible.

Getting only gray screen when launching citrix application

Recently we installed a .net WPF application on citrix. When I go and launch it from citrix using RES powerfuse, I only get a grey screen and no controls are rendered on the screen.
The application is open and the main window can be seen but everything is grey in it. The mouse pointer also disappears behind the application.
The funny part is when the people from the operations team launch the application, it works fine. but not for regular users. This makes me suspect it could be something to do with permissions, yet we have given the access to open the program to all users, thats why the icon appears in citrix in the first place
What server are you running the app on? I recall we hit a WPF rendering bug on certain versions of Windows Server (+ XenApp) where the app would only render properly for administrators. This was a .NET bug - nothing to do with Citrix per-say. From what I remember the WPF rendering engine was trying to get access to some system resource that regular users could not access. I believe we only saw this on 2003 servers.
Just did some further digging, I think this is the issue:
http://support.microsoft.com/kb/955692
For quick n temporary resolution:
Check your local machine resolution and Citrix desktop/application resolution.
Equalise the both it will work.
Ex: 1024/762 is the right resolution.
For test: Do maximise n minimize the screen you will see the change.

Determine number of screens and screen relative location without WinForms

I want to save and restore the window position of my WPF application. I want to make the code robust to use with multiple monitors who's number and relative location can change (I want to avoid opening my application off-screen when the monitor configuration has changed inbetween invocations).
I know of the Screen class in System.Windows.Forms, but I don't want to take a dependency on that assembly just for this feature.
Windows will keep your application on the screen even if you use corrdinates which are now outside fo the viewable range. Just persist DesktopLocation, Size, and WindowState (to see if the app was maximized). Be sure not to save these settings if the app was closed when minimized.

Resources