windows-mobile

CeGetSystemInfo doesn't fill the struct passed by reference

I'm trying to get information about a Windows Mobile device from a desktop application (written in C#). I searched the MSDN and found that the function I need is in rapi.dll: VOID CeGetSystemInfo (LPSYSTEM_INFO lpSystemInfo); The parameter is a pointer to a struct which is deffined like this: typedef struct _SYSTEM_INFO { union {...

MissingMethodException thrown when calling new form in Compact Framework

I'm updating an old mobile device application for better flexibility. I had basically added the ability to configure the address of our SQL server in the case that we want to use our test server as opposed to our production server. I don't think this is causing the problem, but I wanted to state it. I also upgraded the project from a VS ...

typing by hardware keyboard doesn't work for my app

I have a Windows Mobile 5 application written in C#. I have a client with HTC Touch Pro 2 using Windows Mobile 6.5, and the client claims he can't use the hardware keyboard to type in stuff as it doesn't come through. He can use only the on screen keyboard to type in stuff. I have a Treo 750 with hardware keyboard and does work fine for...

handling orientation changes effectively for all controls with small code change

I have a Windows Mobile project built in C#. I have a lot of ready made forms having various controls on it, from Listviews to Editfields. When user changes orientation some elements are not refreshing correctly. For example the Listview's columns are same and doesn't accommodate the new screen width change (scrollbars appear or half of...

Is it safe to pass (synchronously) stack-allocated memory to other thread?

Recently I heard that memory in the stack is not shared with other thread and memory in the heap is shared with other threads. I normally do: HWND otherThreadHwnd; DWORD commandId; // initialize commandId and otherThreadHwnd struct MyData { int data1_; long data2_; void* chunk_; }; int abc() { MyData myData; // initialize ...

Total and allocated heap on Windows Mobile when using Large Memory Area

I have a Windows Mobile 6.1 application which allocates memory not just from the 32MB process space but also from Large Memory Area - LMA (slot 60 and above). MEMORYSTATUS structure gives me memory usage information of 32MB process slot only. Is there a way to compute total heap available from the system and allocated heap by the applic...

Could not find System.Threading after deploying in mscorlib.dll in Microsoft Compact Framework 2.0/3.5.

Hello there, i am facing a problem in windows mobile 6. i have developed an app and i have used Timer class that is present in System.Threading namespace present in mscorlib.dll assembly. the problem is that when i debug it or when i deploy it by creating proper cab file from visual studio 2008 on my device (HTC ELF0300) it runs fine bu...

how to get X and Y coordinate from GPS on Windows-Mobile 6.1 ?

hi how to get X and Y coordinate from GPS on Windows-Mobile 6.1 ? can i get any sample code for this ? thank's for any help ...

Change Windows Mobile 5 Theme via C#

I'm trying to find a way to change the theme of a Windows Mobile 5 device from within my software. Does anyone have any experience in this area? Dylan ...

Using Ruby on Windows Mobile Devices

As far as I know, JRuby runs only on full JVM. I found this version of JRuby which runs on Java Micro Edition devices, however it's marked as EXPERIMENTAL AND RESEARCH ONLY Are there any other options for running Ruby application on Windows Mobile devices? ...

Using data from Google Maps in a C# Program for Windows Mobile

Hi everyone, I'm making a charity Windows Mobile 6 app in C# to help those affected by Alzheimer's. The aim is for this app to let the carer set a boundary by tapping in Google maps to set points. The carer would then put the windows mobile device in the patient's hand bag or coat, so that when the patient walks out on their own, think...

Mysaifu JVM on Windows Mobile

Can somebody outline the steps involved in running java games(jar) on windows mobile using mysaifu jvm. ...

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? ...

Can this select query be optimized more on a mobile device?

We have a C# mobile application with SQLite database. We are having a larger inventory database, such as 30k or 100k items. The database file is 12MB on a flash memory card. Running a simpler SELECT query with limit takes 10-15 seconds. select id,invitem,invid,cost from inventory where itemtype = 1 and (invitem like '%5204d%' o...

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...

Best database for mobile phone development

I am writing an application that initially will be developed as web (probably Silverlight) and Android application. I found on Android website that SQLite is supported, but I plan to release the same app for Windows Mobile, Palm Web OS and iPhone as well. Could you please advice me on which database would be the best to work with for al...

How do I show the beach ball in windows mobile using C#?

How do I show the beach ball in windows mobile using C#? ...

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...

Is it worth waiting a couple of milliseconds on a TextChanged event?

I have a textfield for a filter customers action on a mobile device. I am wondering if I should wait for a few milliseconds before launching my code when the user typed in less then 3 chars, and only execute the code if the text is longer or equal than 3 chars. The executed code takes longer(sql like syntax on a larger database), and th...