compact-framework

How to disable auto hint popup for a field in Compact Framework?

I have a mobile application written in C# for Windows Mobile 5. How can disable the auto hint popup for a certain field? ...

How to pass a pointer to a struct via Pinvoke?

I am trying to write the C# equivalent to the following: typedef struct BATT_ID { UINT8 nBattID[8]; } BATT_ID, *PBATT_ID; HANDLE g_hDevice; // Connect to the driver g_hDevice = CreateFile(L"BAT1:", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); void GetB...

How can create N items of a specific element in c#?

I am looking for a way to generate N pieces of question marks joined with comma. string element="?"; string sep=","; int n=4; // code to run and create ?,?,?,? EDIT 1 I am looking in a simple way. Probably using 1-2 line of code. In c++ there are array fill() and joins. EDIT 2 I need this for Compact Framework ...

Adding a web Proxy for a client created with NetCFSvcUtil with credentials.

We have an implemented a WCF service for sync framework communication with the guidance of http://wcfguidanceformobile.codeplex.com/ . The client in created by NetCFSvcUtil. We have run into a problem when web proxy support is needed. How can you enable credentials with it? On the HttpTransportBindingElement we can set the proxyadre...

How to mark a pushbutton as a default for Enter key on form elements?

I have a Windows Mobile application in C#. I have a couple of fields on the form, and when I hit enter I want the form submitted. Is there a way to mark a pushbutton as default? Also how can I make so the Down key moves the focus into the next field? Tab-order is not respected? ...

Better gzip tool than SharpZipLib for Windows Mobile?

I use SharpZipLib for gzip on a Windows Mobile application written in c# I have this code public static bool gzDecompressFile(String inputFilePath, String outputFilePath) { if (!File.Exists(inputFilePath)) return false; if (File.Exists(outputFilePath)) File.Delete(outputF...

.NET Compact Framework - Cookie-based Web Service access

Hello, I need to access Web Service from .NET Compact Framework 3.5 application. Problem is that Web Service uses cookies for authentication. In desktop application I use .NETs CookieContainer(), which is missing in CF. How can I manage cookies in CF without CookieContainer? Can someone give me a hand in solving this problem? Thank you...

storing images for embedded map application

I have rasterized map in different resolutions, which consists of 15K/60K/240K pictures each sized 256x256, and i have .NET Compact Framework application which can display the map. But it takes a lot of time to copy 300k files to SD card, approximately 35-60 hours (i copyied just 15K and it took ~ 2 to 2.5 hours), and i'm afraid it will ...

Gesture support for controls on a tab page

I'm putting a control together that takes advantage of the Gesture support in Windows Mobile 6.5 (using the Microsoft gesture library). However, When my control is embedded into a TabPage, I don't get to see any gesture events instead the TabControl appears to swallow the events for its quick tab switching. Is there a way that I can eit...

Has anyone seen this error? "genasm.exe(1) : error There was an error finalizing type . Object reference not set to an instance of an object."

It is occurring when I try to compile a Windows Mobile class library, after I added the necessary XMTA file to provide attributes to my custom component. I have searched the net, and I though I had found a solution in here but after I test it throughly the only thing it does is to remove the XMTA file generation. I'm running out of opt...

How to populate thread safe a ListView in c#?

I need to put some ListView populate code in a thread. For the simple case, this thread should not run twice. When I want to issue a new thread the previous needs to stop, whatever did. EDIT 1 The scenario is the following. I have a textual filter above the ListView. On textchange I call a populateList() method. The problem is that the...

How to monitor incoming/outgoing traffic on windows mobile?

I want to check how much was sent/received by WM phone over GPRS/wifi. Please suggest a freeware utility for this or the way i can manage it in .NET CF. Thank you. ...

How to automatically resize a Windows Mobile application when the keyboard appears?

I'm looking into Windows Mobile development but there is one thing which I haven't quite figured out yet. In all applications already installed on the device (Internet Explorer, configuration windows, etc) whenever the on-screen (soft?) keyboard appears, the user interface automatically resizes so the keyboard doesn't cover or obscure th...

Does IBatis.NET work on Compact Framework?

Do you have any experience running IBatis.NET on Compact Framework? I can see that there are no CF specific releases, but I wonder if it would be possible to compile it for CF. Do you know if IBatis.NET's dependency on DynamicProxy is necessary or if it could be eliminated? ...

How to get regional timezone on Compact Framework and then convert UTC date to local date?

How to get regional timezone on Compact Framework and then convert UTC date to local date? ...

What is the "Standard" way to store application state for windows mobile applications?

I am developing my first windows mobile application and would like some guidance on the best way to save and restore application state between invocations of the applications. My application will have a small number of properties, between 10 and 20, that I wish to store when I exit the application and restore when I restart. My option...

.NET CF Application Process is not terminating. We use AxHost based Windows Media Player Component

The problems with Windows Media Player on a .NET CF based application are endless. In one of the .NET CF 3.5 applications, we are using ActiveX controls to play videos. The code for the media player ActiveX control is from this MSDN article. It had few memory leak problems, but the bugs are sorted out with the help of this article. The...

Getting TargetInvocationException using Command Line Parser Library

Update 2: Seems that this library is not Compact-Framework aware at all and I keep getting other exceptions - I am leaving this question as is, but I think you should not waste time on answering it. I opened another question for suggestion of other compact-framework friendly libraries. Using the Command Line Parser Library. I am usin...

C# Compact-Framework friendly command line parser

I read this question: Command Line Parser for .NET. I thought that was what I was looking for, but the library Command Line Parser Library is not Compact framework friendly... I REALLY don't want to write a CL parser and I have been drifting away from the real purpose of my little app because of this unfortunate trial. Does someone kn...

Is .NET Compact a perfect subset of .NET?

Is .NET Compact a perfect subset of .NET? Can I write a Windows Forms application and run it on .NET Compact, assuming that I took into account screen size and other limitations and avoid classes and methods not supported by .NET Compact or is .NET Compact a different and incompatible GUI framework? ...