compact-framework

Why does the emulator start when testing compact framework applications?

I'm using the MSTest system for unit testing my compact framework (3.5) application and DLLs. When I test some DLLs it just runs but for some it loads the emulator first. Can anyone tell me what determines whether the emulator is launched? ...

Use a COM object in .NET 2.0 CF without calling CreateObject

I need to use a COM object in my .NET 2.0 compact framework project, but I can't use the CreateObject function. Is there any other way to call a COM object that will work in my environment? ...

There is no DoubleClick event for ListView control in .NET CF 3.5

In my project, tree is a list of customers displayed in an ListView control, When user double clicks (or taps) on an item I should show the details of that customer, But there is no double click (or click event, mouse up and down events etc.) event in .NET CF 3.5 ListView control (we only have ItemActive and SelectedIndexChanged events)...

C# compact framework : multi thread cause delay?

In my mobile app, I want to load all images from an arraylist of links. For each link I create a thread and make httpwebrequest. The problem is that my app run not smooth. It seems to get a delay every time I create new thread and when thread done(when thread done I'll draw the download img onto background). Here's my code: ...

IOEXCEPTION in C# compact framework when saving image

I'm saving an image from a web request and something really weird is happening. On roughly half of the 8,000 images I'm downloading I get IOEXCEPTION errors: ERROR_ACCESS_DENIED (5) INVALID_PARAMETER (87) Before I save the file using file.open, I check to make sure the file does not exist. The exception is thrown at this line of code: ...

Have a workaround for the 1,000 file limit in a directory on windows mobile 5?

I need to download more than 1,000 files into a windows mobile 5 directory located on the storage card. If i copy the files onto the storage card via my desktop there is no problem. But when i try to download the files from the handheld device I get a disk full error, even though there is plenty of room due to the 1,000 file limit. Has ...

XSLT for .NET CF?

Hi, Is there any XSLT library available for the Windows Mobile platform? I need to transform my XML document to HTML. It can be a plus if compatible with .NET CF. Thanks, Ben ...

Windows Mobile - extra row space visible at the end of a DataGrid

Hi I have a datagrid in a form in my Windows Mobile application. The datasource is set at run time. While my datasource has 10 records and they are shown properly, if I scroll to the end of the DataGrid, there is a white space towards the end. The size of the white space is the same as the height of a single row. This is annoying. Any ...

embeddable navigation engine for windows mobile

Hi, I've been working on an order management system for some time, about 1.5 years. It's written in .NET so I use .NET Compact Framework 3.5. All this time I tried different brands and versions of navigation software. In Windows Mobile (both Windows CE and Mobile) I had some problems managing 2 softwares, our application and the navigat...

Need help with HttpWebRequest on a Compact Framework Project

Hi, not so long ago I´ve created a small iphone app for my Daily use. Now I want to port this app to a Windows Mobile Device while using C# and the Compact Framework. But I really have no clue how to use the HttpWebRequest and the msdn doesn´t help me either. I think I have a lag of understanding on how Web Requests work in general. In...

.Net CF / HttpWebRequest and a "WebException was unhandled"

Hello, I´m trying to use a Webservice in a .Net Compact Framework 3.5 Project which has no WSDL and where I have to use HttpWebRequest. I´ve tried my code on 2 Devices and on the Emulator but I get everytime the same Exception and I really don´t get why!? First, my code: internal void SendSms() { HttpWebRequest req = (Http...

.NET Mobile Apps while Soft/Hard Reset...

Question here is where to find best practices for designing my program and have in mind if user makes a soft or hard reset on the mobile device?! What happens to my program? How i can deal with that? Install in storage card? Having the setup file somewhere and after reset setup again automatically? Any info and help appreciated! Thank y...

URI manipulation in .NET compact framework

What's the best way to manipulate URIs in .NET compact framework? I basically need to load up a URL string, then allow the user to change the "Scheme" and "Host" values. I've been using the Uri class so far, but it's essentially immutable, so you can't really modify any of the components of the Uri, once it's initialized. The UriBuild...

Embedding IWebbrowser2 ATL interface control in C# windows mobile smart device application

Hi All, We have developed an ATL smart device project for to save the web page locally in windows mobile device. The application uses native IWebbrowser2 ATL interface control to browse the web page and save the web page complete. Now we need to have our UI and other user interface controls to be designed and developed using C# also ...

Version information missing from .NET assembly (Compact Framework 3.5/VS2008)

I am building an executable using VS2008 and .NET compact framework 3.5, targetting Windows Mobile 6 professional, but whenever I compile the project, everything that I have specified in the AssemblyInfo.cs file is ignored. I have done this many times in other projects and it works without problem, but for some reason I cannot get the A...

Throw event in the main thread from worker thread C# CF

I have, what probably is, a simple problem. I'm using interop to call an asynchronous function in CompactFramework. After I get result of the execution, I would like to raise an event, that will be caught by the form, and based on the results, I would render some data on the screen. The problem, however, is that when interop function ret...

To find the process running in task manager and to kill the process

I have a windows mobile application I have noticed that it properly terminate on exiting, they simply minimize and take up memory. I need to cehck whether any instance of the same application is running in the taskmanager.If exists, i need to kill the process. I need to write small app that would loop through all open application proces...

Change column headers on datagrid. CF

How could one change the header text on a datagrid when using data binding in .NET CF? ...

Mobile Emulator Launched for non-mobile unit tests

I have a Compact Framework Project that has two Unit Test projects with it in the solution. One is a Smart Device Unit Test Project (needs the emulator to run). The other is a normal Unit Test Project. The normal Unit Test Project runs fine on my machine and on the build machine, but on my co-worker's machine it tries to launch the em...

Hosting ActiveX Controls in the .NET Compact Framework 2.0

Hi All, After following the method to Host the ActiveX Web Browser (webvw.idl) control in C#, we are struck in getting webview.dll file from the mobile device. To create a complete class definition by using AxImp.exe we are unable to get the webview.dll from the windows mobile device, now how shall we proceed further, please help. T...