Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Get Windows Handlers in VB.NET .CompactFramework

Posted on 2003-12-03
3
Medium Priority
?
391 Views
Last Modified: 2012-06-21
I am writing a program for Pocket PC 2002 using VB.Net 2003
I want to use the SHSetAppKeyWndAssoc so I need to the windows handle.  However, the Me.hwn is private member so I use the GetActiveWindow.  But the GetActiveWindow Function return error.  Is there any other way I can get the windows Handle?
0
Comment
Question by:McTao
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 500 total points
ID: 9867872
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q129/8/52.asp&NoWebContent=1

In effect, it says GetActiveWindow() returns NULL if some window not owned by the calling thread has focus.  

Workaround: Use GetForegroundWindow() instead
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Progress
Starting up a Project

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question