troubleshooting Question

Using windows API to set window location.

Avatar of rgn2121
rgn2121Flag for United States of America asked on
Visual Basic.NET.NET ProgrammingCitrix
3 Comments1 Solution620 ViewsLast Modified:
I am not very familiar with Windows API code, but I have an issue that requires it and I could use some help.  I am needing to use WINDOWLONGHOOKS and/or COLORADOHOOKS to make sure that when a new window opens that it loads centered over the main window.  Generally the main window in the app will be maximixed and the additional windows smaller.

The app only has issue on a dual monitor setup within Citrix.  I have been told that the hooks listed above have been enabled for my application.  Everything works fine as far as maximizing and minimizing the main window, but all new windows open in the primary display, when they should open where ever the current app is running, display 2, 3...etc.

I have linked the citrix article that talks about these hooks (bottom of the article)...


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros