compact-framework

Show vs ShowDialog. Can Dialogs be hidden by the user?

In Windows Mobile, if I do a call to Show rather than ShowDialog I will get a modeless dialog box. If that modeless dialog fills the whole screen, is there a way to switch out to a different screen? (Kind of like Alt + Tab in windows). I need to make sure that the modeless screen is locked in place till the OK in the upper right cor...

getPixel setPixel too slow, is there any other alternative on .NET CF

I'm using Bitmap Class' .setPixel and .getPixel to draw my bitmap fonts on .NET CF. But it is too slow, in java we have getRGB() and setRGB() to set array of colors with a single call. Is there something like that in .NET CF. My requirement is simply to draw a portion of a bitmap into another bitmap at specified x,y. EDIT: The source im...

CF - Check input and create directory (device or smart

In my CF application i have a textbox where user defines a directory. I want to check if the input is valid and create the directory. The path can be either on the device itself or on a storage card. can some1 please help me with the correct solution? thanx ! ...

Does Funq IoC Container support property injection?

Hi, I'm looking for an IoC container to use in my Compact Framework application. Trying out Funq I noticed that I can't find a way to do Property Injection with it. I've looked through the discussion on the project's site and the unit tests for it, but I can't find any example of Property Injection. Does Funq support Property Injecti...

Advice on marshalled string that can be either ASCII or UTF-16

Welcome to unsafe land. I'm doing P/Invoke to a legacy lib that gives me a 0-terminated C-style string in the form of an unknown-length unmanaged byte buffer that can be either ASCII or UTF-16, but without giving any indication whatsoever thereof - other than the byte stream itself that is... Right now I have a bad scheme, based on che...

Hide Minimize Button in Windows Mobile

Is there a way (using C#) to hide and disable the minimize/close button? I have a form that I use for login, and I would just rather they not be able to close the window. Failing hiding the button, is there a way to catch that it was pressed and ignore/re-direct it? ...

problem with sql server compact 3.5 and smart device project

hi friends. Recently i downloaded SQLServer Compact 3.5 from Microsoft web site, and i have already installed Visual Studio 2008. When i make a new Smart Device project and try to connect some Dataset to local database, the following error rises : "Error 1 Custom tool error: This operation requires a reference to SQL Server Compact 3....

Convert Smart Device Dll to ActiveX control for Windows Mobile

I am using C# and Visual Studio 2008. I have a class that will turn on the scanner of my Windows Mobile Device and then will capture the read of the scanner when pressed. It will also shut down appropriately and cleanly. I am using a vendor provided SDK to do a lot of the heavy lifting. I have this working correctly in a Mobile App, b...

Choose appropriate platform dependent DLL at runtime

I'm currently working on project for the .NET Compact Framework which uses DotNetZip for reading ZIP-files. The project is split into two parts. One platform-independent library which should be available for both, a CF project and a desktop project. This common library contains the code for extracting ZIP-files. The problem is that there...

Auto size list view column based on contents

I'd like the size of one of my columns in a list view to always be wide enough to display the longest item. I read somewhere that setting the column width to -1 would cause this auto sizing behavior but I've not been able to get it to work so maybe that is specific to the full framework. How can I do this on the compact framework? ...

Can deploy but not debug .NETCF 3.5 App to Device

I have a software application written for .Net Compact Framework 3.5 in VS2008. I can connect to my device via Activesync and deploy the application without problems. I can launch the app on the device after deployment without a problem. However, if I try to connect and debug the app, I get an unhelpful message that says "A serious erro...

Update/Insert to a table using SQLCeResultSet

I have a SQL Compact Edition Database that I update periodically (via web services). The part where I write to the database is taking way too long. I am currently doing it with Linq to Datasets (as seen in this question). I have heard that if I do it with with SQLCeResultSet that it will work faster. So, given that I have a table lik...

HTC HD2 Compass API

Does HTC have a Compass API for devices like the HD2? I'm hoping to be able to work with it from .NET Compact Framework. ...

.NET CF Listbox that can scroll like iPhone

Any know any Listbox control that can scroll with momentum like the iPhone's listbox? (Free / OpenSource preferable) EDIT: NO? REALLY Nothing for .NET CF that can scroll like iPhone? ...

Knowing details of serial port and paired bluetooth devices on Windows Mobile 6.1

I want to do the following using C# on .NET compact framework 1) know the list of all COM ports, 2) know whether a particular Blue-tooth device I have, is paired with my PDA (running Windows Mobile 6.1) or not. 3) If it's not paired I need to figure a COM port that can be used for my Bluetooth device. ...

Storing custom properties in resx files in Compact Framework

We are developing a CF application and are making use of the default localization/resource handling in the framework (that is, when editing a form in the designer properties like Text have their value stored in the .resx files and the resource manager and framework loads it for us again in the selected locale using satelite assemblies an...

CF - Starting application after installing it on device

Hello In my setup.dll i have the folowing: #include "stdafx.h" #include "ce_setup.h" TCHAR Message[] = _T("TERMS & CONDITIONS\r\n ") _T("Do you agree to terms? \r\n"); codeINSTALL_INIT Install_Init ( HWND hwndParent, BOOL fFirstCall, BOOL fPreviouslyInstalled, LPCTSTR pszInstallDir ) { if (!fFirstCall || ::Me...

Need a C# function to get SDCard serial in .NET CF

I've seen it written in C++ which I don't know. I need a C# function that return SDCard's serial in .NET CF. Could anyone kindly help me write a function with it? ...

Select Multiple Files in .NET Compact Framework?

The OpenFileDialog does not provide the functionality to select multiple files. Nor does OpenFileDialogEx (Although better) How do i get about selecting multiple files in .NET Compact Framework? Thanx a lot in advance :) ...

PBKDF2 in Bouncy Castle C#

I've being messing around the C# Bouncy Castle API to find how to do a PBKDF2 key derivation. I am really clueless right now. I tried reading through the Pkcs5S2ParametersGenerator.cs and PBKDF2Params.cs files but i really cant figure out how to do it. According to the research I have done so far, PBKDF2 requires a string (or char[]) ...