I have created a fairly simple VB.Net app and have been testing to make sure that when dual monitors are present the application loads on the NON - primary monitor. The code works great in all tested local situations. However, when I put the app out in Citrix and access the application it loads on the primary monitor and it actually only sees there being one monitor...not two.
I am using the Screen.Allscreens to get the array of connected devices, but Citrix only shows one, while local shows two. Should I be testing for it another way or is there something that might be able to be enabled within Citrix that would allow the functionality I need?
I have added code to check and see that the app is running in Citrix and then to check about dual screens which right now I consider anything with a resolution above 1600 width. What I have tried is in the location_changed event of the form, I check to see if the user is maximizing the form if they are and it is in citrix and dual screen, then I use the code below. The form still spreads across both screens. This could just be a Citrix thing or I have the code below incorrect or incorrectly placed. Any and all help is appreciated. If it is a Citrix thing then I can save my self the trouble of overriding WndProc and the maximize event...
This is something that is very irritating for our dual screen users...
Dim resWidth As Integer = Screen.PrimaryScreen.Bounds.Width
Dim myX As Integer = CInt(resWidth / 2)
Me.Location = New Drawing.Point(myX, 0)