windows-mobile

Get Thumbnail of background window

I'm trying to get thumbnail pictures of windows that are not visible. Here's the code I have so far BOOL CALLBACK WindowProc(HWND hWnd, LPARAM lParam) { RECT WindRect; GetWindowRect(hWnd, &WindRect) CurrentScreenShot->Next = new ScreenShotList(); CurrentScreenShot = CurrentScreenShot->Next; HDC SourceDC = GetDC(hWn...

New windows mobile project - LINQ to data in .NET CF?

I have to convert a project I wrote a while back in MCL to windows mobile using CF 3.5. I am using Visual Basic and VS 2008. There is not much info out there, and much of what is, is in C#. I am working my way through that right now. What is the best way for data access? I am used to using LINQ to SQL, but that does not seem to be a o...

.net - Problems with Array.Sort and Array.BinarySearch - culture and globalization

I need to sort an array containing a list of words and search the same using binarysearch. For certain reasons, the word-list must always be sorted using the sorting-rules of "en-US" i.e. American Regional Settings. The code will run under various international Operating Systems and of course this will mean that the word-list will be sor...

Prevent Pocket-PC to go to landscape Mode.

Hi, I have a Windows Mobile application (written in C#) that only works on portrait mode. Is there anyway programmatically to prevent the system from automatically rotating my application to landscape mode without having to change Windows Mobile system settings? Platform: Windows Mobile 6.1 Professional ...

Need a simple way to show a map from an address on .NET Compact Framework

Are there any easy and free methods of showing a map of a location starting from an the address in .NET Compact Framework. I'm fine with opening IE Mobile from my application. ...

How can I make sure a control is visible when it's inside a scrolling control?

I have a tabcontrol with several tabpages. I also have hooked into the InputPanel.EnabledChanged event so that the tabcontrol resizes when the inputpanel is enabled. What I would like to do is ensure that the control with the focus is visible when the tabpage is resized. What's the best way to accomplish this. Note that I am using th...

How to resize columns of DataGrid bound to List<T>, not DataSet?

I'm trying to use a System.Windows.Forms.DataGrid control in my Compact Framework 3.5 Window Mobile Professional 6 SDK based project to show some properties of objects of type Something by binding the DataGrid to a List<SomethingWrapper> instance like this: public class SomethingWrapper { private Something data; public SomethingWr...

Windows Mobile Synchronization Error

Hi guys, I am new to Windows Mobile development and have been investigating methods to synchronize data between PDA's running WM6 and a SQL Server 2005 Database. After some research I decided to go with Windows Synchronization Services. I started by looking at the sample: SyncServicesForDevicesSample I downloaded and installed all ...

Adding and updating a record programmatically using .NETCF

OK - I have worded this search 40 different ways and I seem to be lost here. Every example I find seems so happy that you can easily drag and drop a datagrid and let the user fill it in -- then they stop! I know how to do everything I am asking through LINQ. That obviously won't translate here. I really should have learned ADO.NET first...

Windows Mobile App will not run more than once

I'm having problems getting an application I wrote for Windows Mobile 6.0 to run more than one time on my smart phone. I built it into a .cab and it installs and runs fine the first time, but if I close the application and try to start it again, it will not run unless I restart the phone. I have checked the task manager after closing t...

How to detect the title of Email on Windows Mobile?

I want to notify users when he receives a certain Email with a specific sound. So I need to detect the title of Email. I can use MailMessage in framework 2.0, but this class is not supported in compact framework on Windows Mobile. Any suggestion about which class can I use? Or is it impossible? ...

API to list files on a Windows Mobile device

I'm writing an Windows Mobile application and I'd like to get a list of files in a certain folder on the device. Is there an API to use to read information about folders and files in the device file system? ...

Is it possible to open 2 connection on Windows mobile (3.5) ?

Hi Is it possible to open 2 connection to database (.sdf file's) on windows mobile ? (frameWork 3.5) if yes, how can I do it ? thank's in advance ...

Windows Mobile - Disable Power Button

Has anyone successfully trapped the power/standby button on a WM5 device such that your code prevented users "switching off" even the screen? I have an application that uses the screen in a landscape orientation and I'd like to trap the power key press so that (a) users can hold the device with both hands and not accidentally power-down...

Saving image to file with IImageEncoder

Hi, do you have a working code to share. I’m trying to figure out how to save to a file an IBitmapImage image. I need to resize existing .jpg file and it seems like the only API for Windows Mobile. I managed to load it convert it to IImage -> IBitmapImage -> IBasicBitmapOps and resize it finally, but I have no clue how to save it pro...

Windows Mobile - auto connect to Internet (GPRS) when opening SqlConnection (.NET)

Hello! I've set up a GPRS connection on a mobile device running Windows Mobile 5.0. It connects on demand (e.g. when entering an URL in Internet Explorer). However, connecting to a remote database (via SqlConnection) fails if the device isn't already connected, ie. it doesn't connect automatically. Is there a way to configure the devic...

debuging pocket pc 4.2 (2003) app in visual studio 2008 over 802.11

I have been pulling my hair out! Does anybody know how to debug a app on a remote device running pocket pc version 4.2 over a wireless network? I can remote debug over active sync but this device only supports active sync while cradled at 57K baud (painful debugging experience). I do wireless debugging in widows moible 5 all the time....

Write A Card Game

Hi, I wish to write a card game for Windows Mobile 6 using .Net C#. Is there a good managed library that I can use that contain cards? e.g. the images, the deck etc. Thanks ...

META tags in IWebBrowser2

I'm writing an app which uses the WebBrowser control; the app is for Windows Mobile. The documentation says that the interfaces IBrowser etc are being deprecated, and I should use IWebBrowser2 and DWebBrowserEvents2 instead. In my code, I've changed things like CWnd p; p.Create(WC_HTML, ... to CWnd p; p.CreateControl(L"Microsot.PIED...

Windows Mobile- only keeping one form open. Best design question

So I would consider myself a .Net and ASP.NET pro but I am a bit new to Windows Mobile (I am targeting .net 3.5 CF and Windows Mobile 6). I am creating a data driven application that will have 3-4 tables. I have created a form for each table that allows the user to search through the table. Each form inheretes from the Main form so th...