Citrix Desktop Viewer Screen Resolution and Window Size

As far as I know there is no “official” way to set the width, height and screen position of Citrix Desktop Viewer in window mode. It can be done easily by changing a few registry values, though.

To set the window size (including title bar, borders, etc.) modify the following registry values:

[HKEY_CURRENT_USER\Software\Citrix\XenDesktop\DesktopViewer\SUBKEY]
"WindowedBoundsLocationX"=dword:00000000
"WindowedBoundsLocationY"=dword:00000000
"WindowedBoundsSizeWidth"=dword:00000500
"WindowedBoundsSizeHeight"=dword:000002d0

Above values will put the Desktop Viewer window in the top left corner and set an outer size of 1280x720.

Notes: You need to replace SUBKEY with the internal name of the published resource. The easiest way to do that is check the registry of a user who has already connected to that resource. And yes, this works for XenApp and XenDesktop.

To find the screen resolution of the XenApp/XenDesktop session right-click the desktop and select Screen resolution. The dialog that comes up shows you the net size that remains after the Desktop Viewer window borders have been subtracted (1264x656 in this case):

Citrix Desktop Viewer - window size 1280x720

Comments

Related Posts

Is my App Running on Citrix XenDesktop/XenApp?

Is my App Running on Citrix XenDesktop/XenApp?
How do you programmatically determine if an application is running in a session accessed over a remoting protocol (i.e. ICA aka HDX or RDP)? It may be Citrix’ strategy to completely hide the fact that a session is remoted - which makes sense in many ways - but in some cases developers simply need to know in order to optimize their applications. It is surprisingly difficult to find official documentation about this. Here is what you need to know.
Citrix/Terminal Services/Remote Desktop Services

Latest Posts

Scripted WordPress to Hugo Migration

Scripted WordPress to Hugo Migration
After having published in WordPress for almost 20 years, it was time for a change. This site is now rendered by Hugo, a static website generator built for Markdown content hosted in a Git repository. The migration from WordPress (HTML) to Hugo (Markdown) was far from trivial. Since I couldn’t find any tool for the job, I developed my own set of migration scripts that fully automate the migration process. You can find them on GitHub along with extensive documentation.
Website