windows-mobile

Windows Mobile API calls from .NET - what dll and what are the enum values

I am a newbie to API calls in .NET. I am looking at the documentation for a method I want to call here EDIT The method is a Windows Mobile API call. To call it, I need to know what dll it is in and what the values are for any parameter flags (and other stuff but this is just an example). So where do I find this out? It's not on the ...

How to show "busy" dialog (spinning wheel) on Smart Phone

Can't find how it is called nor how to pop it up. My CF application is talking over the web with a web service. Want to show my user some "busy activity" dialog. Any suggestions how to show the default one from WinMo? ...

Button BackgroundImage Property

I am trying to write an application on Windows Mobile but I am experiencing a problem. I want to draw a picture of arrows on the button but I do not know how to do this. How can I accomplish this? ...

Change font of cell in DataGrid on Windows Mobile

I'm using VS 2005 to create a Windows Mobile program in C#. I need to display data in a grid. The only grid control I could find for Windows Mobile is DataGrid, so I placed one on my form. I now need to change the width of some columns and the font & color of some cells. How do I do this? Also is there is a better control to use for...

Switching from Win32 to Windows Mobile 6: any tips?

I'm starting on a Windows Mobile project (no .NET Compact Framework - just native code). Having been a Win32 programmer (managed and native) for many years, I probably have some "desktop-isms" built in my brain that just don't translate well to the mobile world. Are there any tips you may want to share about typical pitfalls for someone...

OnMouseDown, OnMouseMove and a Custom Control

Hi! I'm developing an app for windows mobile. I have my own control that moves the picture inside it. I have overrided the OnMouseDown and OnMouseMove to redraw the picture where the user move it. I only test it on Windows Mobile 6.1 Professional emulator. It works but I have a problem: I click on the image, move it with the mouse, st...

Fullscreen application WM6 C#

Can anyone point me in the direction of how to create a full screen application in C# for Windows Mobile 6? I'm trying to achieve a similar display to applications such as Tom Tom where all the OS elements such as the Start/Task bar are hidden and my application completely fills the screen. I'm using VS 2008 with .Net 3.5 Thanks in a...

Windows Mobile API calls - success but GetLastWin32Error returns error code - should I be worried?

I am a newbie to PInvoke calls. I have googled this as it seems like a simple enough question but no joy. I am making muliple Windows Mobile API calls in a row (to detect if my app is already running and then re-activate it). Everything works fine and dandy but I wanted to put in logging etc for the times when it doesn't work OK. Whi...

GDI performance on Windows mobile or CE device

I have a Windows CE application that uses a lot of vector graphics and in places is quite slow. I'm currently using GDI for rendering via a bitmap for flicker free refreshes. Typically, I'm windowing in on part of a large 3d map. On some devices (e.g. 166mhz SH4), this gets slow with 3-5 second refresh times for big datasets. My ques...

Programmatically connect to bluetooth headsets on Windows Mobile

On a Windows Mobile 5.0 device I have an MFC C++ kiosk application that should programmatically connect to one of 3 Bluetooth headsets and open a bidirectional audio connection to it. The headsets are already known to the device, it's only the switching and connecting part that should be done programmatically. How would I do that? I'...

How can I check the device platform before deployment in the .NET Compact Framework?

I've developed an application for Windows Mobile using Windows Mobile 6 Pro with CF 3.5 and I have some deployment questions. I'm targeting only Pocket PC and I don't want to let users install it on their smartphone (because it simply won't work). How can I check for the platform on which the user is installing the application and show...

How to unpack a .zip file in Windows Mobile?

I need to programaticaly unpack a zip archive to folder on Windows Mobile. Is there an easy to use API that I can use directly or should I go with some external library? ...

c# Label Visible and Invoke

Hi! I'm devolping a Windows Mobile aplication in Compact Framework 2.0 SP1. How can I make invisible a label using invoke? Thanks! ...

Windows Mobile GetStoreInfo Invalid Parameter

I am an working on a mobile application using Windows Mobile PocketPC 5.0 SDK. At some point I need to call the function GetStoreInfo. It takes two parameters, first one is a handle to the open store and second one is a structure to be filled by the function. Caller only needs to fill in the cbSize field. And that is supposed to be equal...

Data grid style windows mobile c#

Hi, im trying to style a column in my datagrid so it would fit %100 to the width of screen. This is my first ever learn while creating style project and im stuck. i bind data to my grid with DataTable dt = new LoadGenres().Load(strFullPathToMyFile).Tables[0]; genreGrid.DataSource = dt; LoadGenres uses below xml to c...

DataContractSerializer missing from the .NET Compact Framework

It appears that the DataContractSerializer isn't available in the .NET Compact Framework. I found this quite surprising, as I consider DataContractSerializer to be the Holy Grail of serialization, and one of the most widely useful classes introduced in .NET 3. Is there a way to get the same functionality under the Compact Framework, tha...

Access parent's DOM from script in an iframe in IE Mobile

I have a framed window (currently iframe but may possibly be frame) - I do not have control over this. I would like to detect if my content is inside an iframe (or frame). I wanted to compare the location of the current document with the one the top object holds but it appears it is the same object (top === window). After extensive...

c# windows mobile hide datagrid horizontal scrollbar

Hi, could someone post a sample code to hide horizontal scrollbar on a datagrid on a windowsmobile compactframework app? thanks ...

Alternative options to MS SQL REPLICATION

Hi there, I would like to ask if there are any alternative options to ms sql replication(this is what i am using now) for replicating data. Creating a custom architecture for replicating is a good idea? PS. The alternative option must support mobile databases that run on Windows CE/Mobile EDIT: The application should be able to work ...

How to determine the type of Windows Mobile device?

We have a Windows Mobile application which is currently running on Symbol (now Motorola) devices. We use the manufacturer's SDKs in order to do things like register barcode scans. We now need to make the software work with Intermec devices. I already have the scanning code abstracted behind an interface so all I need to do is wrap the ...