compact-framework

How to read barcodes from camera on .NET Compact Framework?

Looking for a solid solution for handling reading barcodes from Windows Mobile devices using .NET Compact Framework. Ideally something open source or free, but not against paying for something that works well. I'm looking for a high quality solution if one is available. ...

backlight of windows mobile

Hi, How can I detect using c# if state of backlight is turn on or turn off? After specified time, backlight turn off in mobile. Thank you ...

CF - CAB deployment

Hello. I have followed this example http://msdn.microsoft.com/en-us/library/Aa446504 and it works fine. The cab is created and i can copy it on the device and install the app. What im missing is that on device the application is not present in Programs folder. All i can do is browse to its location in /program files and run it manua...

Sql query builder c# for windows mobile

I'm building a windows mobile app. And using SqlCe. I'm looking for a good sql query builder. So instead of writing "SELECT COLUMNS FROM TABLE WHERE etc... Is there a good free library that can build this sort of query? EDIT: You know when you write your code with ADO.net something like this SqlCeCommand command = new SqlCeCommand(...

How to supply a password to POWER_STATE_PASSWORD?

I am trying to get the powerstate for my windows mobile device. The states are defined as: #define POWER_STATE(f) ((f) & 0xFFFF0000) // power state mask #define POWER_STATE_ON (DWORD)(0x00010000) // on state #define POWER_STATE_OFF (DWORD)(0x00020000) // no power, full off #define POWER_STATE_CRITICAL ...

Accessing a Form thats already been instantiated

In C#, using CF, how do you display a window that already has a previous instance loaded into memory? Example: Form1 has a textBox1 and a button. Some text is typed into texBox1. The button click of Form1 loads Form2 which also has a button. Clicking Form2's button calls Form3. How do you call the already running instance of Form1 to...

using UpdateLayeredWindow in NETCF (Windows Mobile 6.5 only)

guys, have you tried using UpdateLayeredWindow API? am not sure why it doesn't work. meaning.. just a blank layered window .. public void MakeEXLAYERED(IntPtr hWnd) { // add WS_EX_LAYERED and WS_EX_TRANSPARENT extended style in our form int _initialexstyle = Win32.GetWindowLong(hWnd, Win32.GWL_EXSTYLE); Win32.SetWindowLong(hWnd, W...

.NET Compact Framework WebRequest Performance

WebRequest calls on .NET Compact Framework seem very slow. Are there any tips or tricks for high performance web request calls on Windows Mobile? Just looking to make a few json calls here, and they seem to take a really long time by default. But if I try the same calls on the iPhone, etc. I don't see the same lag. ...

.NET Compact Framework: combine two images in one / overlay one image on another

I have two png's and I'd like to draw one on top of the other. Is there a good way of doing this in .NET Compact Framework 3.5? The first image is the background, the second image is an overlay. The overlay will have transparency. My goal would be for the overlay to be "added" to the base image. Think four star rating image added over ...

Robustness of file handling in windows mobile against power failure (data recovery)

I am writing a c# .net CF application for windows mobile 6, which does some file handling. I wanted to know if there is any built-in way to make the file handling robust against power failure. For instance, if there is a power failure while writing the file, the file contents should be intact without corruption(maybe there is loss of th...

How to send a Font File to a Zebra Printer (MZ 220) via .Net SDK?

Hello, I have to send custom Font Files to a Zebra MZ 220 Printer via C# and the Zebra .Net SDK. That SDK provides a SendFile() Method and it works with template Files percectly but whenever I send a Font File the printer starts printing out the File while receiving it. The Zebra Software Label Vista has a Menu option Send Font but I ha...

.net cf - launch explorer programmaticly

I am trying to launch explorer programmatically from my .Net CF Window application. But its throwing win32 exception. I have used same kind of code in desktop .Net version, and it always worked. (I am using Windows CE 5 and .Net CF 3.5 ) Following code throws Win32 Exception, Process.Start("\\", null); Unfortunately, i am using the c...

GDI+ functionality in .NET CF generic WinCE

There is no gdiplus.dll in my WinCE device, Is there any way I can get gdi+ functionality in .NET CF? I'm particularly interested in anti aliased drawing of polygons. (that's all I want). ...

How to programatically install a font in Windows CE

I would like to install a specific font on my program load and use that font in rendering text of the program. How can I programmatically install a font from .NET CF on WinCE 6. ...

How to attach Messages from a Form shown with ShowDialog to Application2?

I am trying to use the code in this article that lets you know when your app is idle.. This code works great if your application has only one form. You call Application2.Run(myOnlyForm) on it and all messages get routed through the filters in Application2. However if at any point you call mySecondForm.ShowDialog() that dialog does not...

How to get the handle of a MainMenu object in Compact Framework

Using the compact framework (ie managed code), how can I get the handle to a MainMenu object? (P/Invoking is fine) ...

Displaying RTF in compact framework

I have been surfing for this anwser, but seems like its not supportef in CF. I have come across a solution with SDF InkX control, that can display RTF file. Can some1 please point me to a good example how to do this? thanx ...

.NET compact framework - detecting if under emulator?

Hello Is there a way to detect whether we are running on emulator or real device from .NET CF code? Thanks Dominik ...

Getting process ID from a shell executed file?

I am making a program for handheld PDAs using .net 2.0 compact framework and I have this one part which I'm not proud of and I was hoping for a more elegant solution. Basically the problem is another process using my file in this case its Windows Media Player. I start the process by passing the file location to Process.Start but it seems...

Call JavaScript function from .NET Compact Framework in WebBrowser control

Is there anyway to call a JavaScript function from .NET Compact Framework through the WebBrowser control? ...