compact-framework

Windows Mobile - detecting when power off button is pressed

Is there an easy way to get notified when user presses Power Off button on it's Windows Mobile device? Using C# of course. Thanks! ...

How to Connect to wifi network in .NET CF C# 3.5

Here is what i wanted to do in a .NET CF 3.5(C#) application 1) Check if the wireless adapter is working/active 2) Add a preferred network with the available SSID, password and other details 3) Establish connection to the preferred network I tried using OpenNetCF.Net.NetworkInformation class, but tough luck! I'm not able to detect Wire...

Retain Arraylist values when form closed and reload.

I have a List<myObject> and I want to keep all the list values when the form closed and reload the list when the form is open the next time? Where can I save my List<>? It's a mobile phone app. UPDATE 1: Using XMLSerializer XmlSerializer myXmlSerial = new XmlSerializer(typeof(List<CtrlListItem>)); StreamWriter myWrite = new StreamWr...

NETCF app and "Program memory low" dialog

I have a memory leak somewhere in my NETCF app, but instead of getting the "OutOfMemoryException" with the nice stack trace to track it down, I get the big white wince "Program memory..." dialog and have to restart the device. Can anyone give me or point me to a good set of directions to disable the "Program memory" dialog, and have the ...

Using JSON.NET to parse JSON generated through PHP

Hello Everyone, I'm sure this has been asked before but I'm not finding quite the information I'm needing so I thought I'd post this. I've written a PHP script that returns a simple JSON object that looks like this: {"status":"success","level":"admin"} I'm doing a standard web request that submits the required data to the script over...

From windows mobile how to send a C# object to a http stream

Scenario: Windows Mobile C# Compact framework 2.0 or 3.5 Protobuf object I need to send an object to a http url (Post). Afterward I will wait for a response and receive a modified version of the object back. Any input on how to connect to a http stream and passing in a serialized object? ...

Retrieve the LANGID for French (Canada) on Windows Mobile 6?

I'm writing a script using SOTI Package Manager and I'm trying to find the particular key I can use to retrieve what the current Windows Mobile Regional Setting is for Language. If it's French (Canada) I want to display post-install script messages in French, otherwise I want them in English. I've got the ability to check a registry va...

Can encode/decode a Image Object to keep it in a XML file using Compact Framework?

As the title mentioned, I want to encode a Image Obj into some kind of text data (compact framework not support binaryformatter, correct me if I'm wrong). So is there any way to encode a Image Obj into text data and keep it in a XML file for being able to decode from XML file to Image obj later? UPDATE: Here is what I did following Sam'...

Rendering HTML on Windows Mobile 5.0

Hi, I am trying to make an application which will allow me to render HTML and display a web app. The first idea would be to use a browser control. The issue I am having is the web app responds to outside events such as scanners hooked up to the actual device. For example if I have a bar code scanner hooked up to a Windows Mobile 5.0+ d...

Play sounds with the Symbol Developer Kit in c#

Hello, We are developping a mobile application, which targets devices manufactured by Symbol. On these devices, Windows Mobile is the system. Our application play sounds (simple beeps in fact) : we use the developper kit provided by Symbol to access the device sound card in order to play sounds. here is the code we use : Symbol.Audio...

How can I deploy a smart device application to a reconfigured WinMo emulator?

I've reconfigured the default Windows Mobile 6 Professional emulator to increase it's memory size and now I would like to deploy and debug my CF application on it. The problem is that it is not possible to select this newly created emulator configuration from the Target Device drop-down in VS2008. If I select Windows Mobile 6 Professio...

running VisualStudio CF3.5 apps on WINCE

Hi, I am trying to write a program for a chinese PNA device with wince 5.0. But everytime I write a simple program in VS8 with C# and 'deploy' it to my device it just doesn't run. First it complains about disposing an object call menu, although I don't want an menu but VS8 just creates one for me. If I delete the menu from the form the ...

Post MouseUp alteration of datagrid!

Hi guys, I have .NET CF app, with a form that contains a datagrid which I've bound to a BindingList using a solution derived mainly from this article: http://msdn.microsoft.com/en-us/library/aa480736.aspx I've hooked it up so that when a column header is clicked, I get the HitTest information and check for the Type. If the Type is Colu...

Late Loading a .net plugin dll

I have a C# .Net 2.0CF application where I would like to load a .NET 'plug-in' DLL at runtime. As I understand it, I should be able to use the System.Reflection.Assembly.LoadFrom() to load the DLL to an Assembly. Then use Assembly.GetTypes() to get the list of types within the plugin to match them to my expected interfaces. The problem...

How To Implement Fade In/Fade out .NET Compact Framework Forms

Is it possible to implement Fade In & Fade Out effects in .NET Compact Framework forms? We have two panels that needs some smooth transition effects. I checked FlowFx library, but seems to be using it in commercial applications is not allowed. Any other libraries/sample code that helps me? ...

How to get an image to a pictureBox from an URL? (Windows Mobile)

Hi! What and how is the best way to get an image from an URL when using the Compact Framework? I have googled around, but could not find any decent answers. Something i found was this (made a function out of it): public Bitmap getImageFromUrl() { HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(this.SImag...

Displaying a collection of objects in a .Net grid on a smartphone without data binding.

I know there's No DataGridView in the CF, but I've got a collection of in-memory objects that I want to display in a grid on a phone. Options I have thought of: Stick all the objects into a SQL-CE database and use a bound datagrid. This'll mean pulling my classes apart and separating the data from the functionality, which may or may n...

Get resource without reading it completely into memory

I have an application on the Compact Framework that has some large embedded resources (some of them are several megabytes). I am calling assembly.GetManifestResourceStream(...) which returns a Stream object. However, I noticed that on some devices this call not only takes quite a while but causes the device to run out of available memo...

How to close on pressing X on PocketPC

On PocketPC, when you tap the (X) to "close" the application, it stays open in the background. The only way to close it (without third-party programs) is to go to the settings->memory and close the program. Or you can run other programs so when the PPC gets to no memory it will close the earlier programs. I am developing an application ...

What's the best way to create a Windows Mobile application with multiple screens in C#

I am creating a Windows Mobile Application in C# and Visual Studio 2008. The application will have 5-6 main 'screens'. There will also be bar (/area) with information (e.g. a title, whether the app is busy, etc) above the screens, and a toolbar (or similar control) below the screens with 5-6 buttons (with images) to change the active sc...