compact-framework

What Version of Windows Mobile 6.5 is on my Device?

I have a Symbol MC 75. It is running Windows Mobile 6.5, but there are several updates after the basic Windows Mobile 6.5: Windows Mobile 6.5 Windows Mobile 6.5.1 Windows Mobile 6.5.3 Windows Mobile 6.5.5 How do I know which one I am running? I went to the about page for my device and it just says Windows Mobile 6.5. Does that mea...

Can't find PInvoke DLL on Windows Mobile

I am working on Windows Mobile application. Whenever I download some sample which is using wrapper around native code (using DllImport), it always gives "Can't find PInvoke DLL" error. I am using VS 2005 with C# on 64-bit Windows 7 OS. I have checked many of solution on stackoverflow as well as othersites, but with no solution to my p...

How should I connect to .NET 1.1 Webservice from a .NET CF 3.5 Windows Application?

Hello, I have an windows application in .NET Compact Framework 1.0. I have migrated the application to .NET CF 3.5 (VS 2008) using the .NET conversion wizard. The CF 1.0 application connects to a web service developed in .NET 1.1. When I tried to connect to the same web service in CF 3.5 application it results in "Remote Server is not r...

CF - Read files from host desktop

I am writing sample app for win mobile devices using Compact framework. App should read files (pictures, .jpg) from host desktop. Is there sample or something build in for task like this? In what kind of relation are device and host when device connecting to workstation using ActiveSync? ...

Write SMS to folders (Inbox, Drafts, Sent Items) on Windows Mobile (Managed Code prefered)

I am taking backup of message folders (Inbox, Drafts, Sent Items) from Windows Mobile to server. Now, I need to restore the messages to the corresponding folders after we wipe the Windows Moble. How to write SMS to the corresponding folders (Inbox, Drafts, Sent Items)? I found SimWriteMessage method of SIMMANAGER API. Its Native code. ...

Windows Mobile 6.1 - .NET CF StatusBar control - embedding icon

Hello Is it possible to embed an icon on StatusBar control on .NET CF 3.5? Regards Dominik ...

How to use the DataGrid control with SQLiteDataReader?

I am developing mobile application in C#. I want to read the values from the database & display in the gridview control. I am not aware of of how to use the SQLiteDataReader with datagrid control in compact framework. My code is running properly but I am not able to display the values in the datagrid SQLiteDataReader SQLiteDrKeyObj = nu...

Panel not scrolling to focused control when input panel opens

Working on a Windows Mobile 6.5 application and having an issue that I would think would be handled automatically. I have a panel on the form and have it's AutoScroll property set to true. Have a textbox that shows an inputpanel on focus. For testing, I place the textbox outside of the visible panel to force the scrollbar. Clicking i...

TypeLoadException hiding inner exception

Hi I'm using Compact Framework 3.5 / VS2008. I'm getting really odd behavior with TypeLoadException. The following code throws this error. The reason is a problem with the database connection. However for some unknown reason this inner exception is lost and is not contained in the TypeLoadException. try { settingsFromDb = Settings...

How to autoresize the DataGrid Control & DataTable in .net compact framework ?

I am developing mobile application in C#. I am using SQLite as a database. I am using the following code SQLiteDataReader SQLiteDrKeyObj = null; DataTable dt = new DataTable(); DataManager DataMgrObj = new DataManager(); QueryDetails QueryDetailsObj = new QueryDetails(); //int ...

Where to find Phone.dll file for getting Call Logs (PhoneOpenCallLog)?

I can't find Phone.dll file on my computer and getting Can't find PInvoke DLL 'Phone.dll'. Where will I find Phone.dll file? ...

c# Client socket hangs on send after server socket is opened/closed several times

I have a Motorola/Symbol terminal running Windows CE 6 connected through a LAN cradle to my network with a static IP address. The terminal runs a compact framework 2.0 app. When the terminal is put into the cradle, a form is opened which creates a socket and starts listening for incoming data. The inner workings of this socket are model...

How do you change the .Net CF 3.5 DataGrid scrollbar colors?

I'm writing a .Net Compact Framework 3.5 app that uses the DataGrid control. I'm trying to figure out how to set the vertical and horizontal scrollbar colors (background and foreground). Solutions? Thanks. ...

Get List of Installed Applications Windows Mobile (C# Managed)

I need to get List of Installed Application on Windows Mobile using C#. After that, I want to have capability to get notifications when installed application starts, ends etc. ...

Force .NetCF 1.0 Scaling model to .NetCF 2.0 application

I have an large application developed in .Net Compact Framework 1.0 that has been developed over the last 9 years with large amount of forms and custom controls. The application is designed for 240x320 screens. It scales good to a 480x640 screen when compiled with Compact .Net 1.0 and Visual Studio 2003. I upgraded the application to ...

How to add checkbox control at the beginning of every row in datagrid control ?

I am developing mobile application in C#. I want to add the checkbox control dynamically at the beginning of every row in the datagrid control & based on that particular checkbox selection I want to fire the event. I want to add the checkbox column & based on the selection of any particular checkbox, I want to fire the event on that chec...

How to resize the windows form dynamically in mobile application ?

I am developing mobile application in C#. I am using the keyboard launch functionality to launch the keyboard on mobile device when one of the textbox gets focused. I am using the following code. private void inputPanel1_EnabledChanged(object sender, EventArgs e) { InputEnabled(); } private void Inpu...

How to reduce the size of an image in C# and .NET 3.5?

I have a screen shot I take in my mobile app. The screen shot takes about 32 KB when saved as a png on a disk. I am sending these to a central SQL Server and 32 KB is too big for that amount of times I will need to store that screen shot (approx 2500 times a day). Is there any kind of trickery that I can do to get it to save smaller? ...

How to hide the wait cursor while loading windows mobile program

I have an application written in C# and running on Windows Mobile 5. It currently takes several seconds to load all of the assemblies. During that time the wait cursor spins on top of the screen. I would like to show a splash screen with a progress bar instead. How can I prevent the cursor from being displayed? ...

Convert an image to 16 bit color depth

I need to take a screen shot and convert that screen shot to a 16 bit color depth. I am using C# and .net cf 3.5. I think I could adapt this solution to do it, but I want to know if that is overkill. Is there a way to do this just using .NET CF (ie, no/less p-invokes.) If it can be done just using .NET CF then it would be easier on...