Issue with VB.Net app using dual monitors in Citrix.

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)

Open in new window

LVL 12
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Check out this article from Citrix and let me know if it helps:

Also make sure your users are utilizing the latest version of the ICA client.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgn2121Author Commented:
Thanks...I read through the link and it is spot on with what I am experiencing.  I don't manage the servers so I will have to talk to that group about what is mentioned above. I will leave this open until the beginning of next week to see what type of resonse I get.
Is there anypoint in me coding in the API functionality.  Will the Citrix settings override me?
rgn2121Author Commented:
Looks like we are using 10.1 for our ICA Client...I am having the server guys check it out and will let you know.  I tried coding some API stuff in and it didn't help.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Let me know how it goes.
rgn2121Author Commented:
Still waiting...if I don't get anything back by the end of the week I will accept and close this and then add the information when I get it.  Sorry...
Any luck?
rgn2121Author Commented:
Server support is looking into the issue...thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.