CompactFramework applocation class name

G

Guest

Hello,
I develop for SmartDevice using VS2005
I my application to be able to load multiple times.
In VS2003 I used FindWindow with class name : "#NETCF_AGL_PARK_"
But with VS2005 the FinsWindow cannot find the window.
If I check with RemoteSpy And I see the class name is the same as I search.

This is the code i use :

[DllImport("coredll.dll", EntryPoint = "FindWindowW", SetLastError = true)]
private static extern IntPtr FindWindowCE(string lpClassName, string
pWindowName);

string sName =
Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName;
string sClass = "#NETCF_AGL_PARK_";
IntPtr i1 = FindWindowCE(sClass, sName);

How can I get the application window ?

Thanks,
Sharon
 
P

Peter Huang [MSFT]

Hi

This newsgroup is for desktop framework development issue.
As for compact framework issue, please post in the newsgroup below.
microsoft.public.dotnet.framework.compactframework
or
microsoft.public.pocketpc.developer

Thanks for your understanding!


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top