Solved

Get Windows Handlers in VB.NET .CompactFramework

Posted on 2003-12-03
3
384 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 125 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Progress

728 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