compact-framework

Compact framework voice recognize API or library

So far my research telling me that there is no free library for voice recognize. Is this still a case, (because all post I found is old few years). Is there sample app, or anything that I can start with If I want to make my WinMobile C# app be able to recognize Voice from input. ...

.NET Compact Framework: CAB file configuration

I have a Windows Mobile application that I send to my client as a CAB file and then he installs it to 20 mobile devices. This application communicates with web service and has config.ini file in the Program Files/app_name/ folder to store the web service url. The drawback of the current approach is that client can change WS url only afte...

Compact Framework buttons image + label

Hi I am working on a C# .net app for windows mobile. Problem is, I am a web developer, this is the first ever for me to write code for a desktop app, and to make things worse, I even have to work using the CF. I have this problem: I need to use buttons (System.Windows.Forms.Button) but I don't know if I can use a nice picture for the b...

NullReferenceException from AlphaImage.CreateFromResource()

I am using the AlphaMobileControls library for the .NET Compact Framework. I am using AlphaImage.CreateFromResource(imageResourceName) to create an AlphaImage object. The problem is that this method is throwing a NullReferenceException. Looking at the code for this method, the problem is that this line of code is returning null: MemoryS...

Get the focused element in NETCF WebBrowser contol

Wondering if anyone knows of a way to get the element which currently has input focus within the DOM of the page currently loaded in a .NET CF WebBrowser control. I want to use a control from OUTside the WebBrowser to insert some data into the currently focused control in the DOM. ...

Compact Framework bottom toolbar show / hide

Compact Framework .net C# Desktop Application for Windows Mobile I got 2 buttons that open 2 different "modules" / "screens" Code looks like: /*previous declaration in static class Program */ public static Form ofrmBin = null; /* this is called for both buttons */ Program.ofrmBin = new frmMainBin(); Program.ofrmBin.Show(); Pr...

.NET CF - MSMQ ActivateDevice() Crash

I have a .NET 3.5 Compact Framework application that uses MSMQ. We are running this application on an Intermec CN3, Windows Mobile 5.0 device. However, when our application first tries to active the MSMQ service with ActivateDevice (pinvoke), the application crashes and we get the error report message: A problem has occuurred with m...

PropertyChanged not firing

Hi everybody! I have a strange situation: in a .NET CF project there is a class (call it A) which has the following structure: public partial class A: Form, INotifyPropertyChanged { //for simplicity stripping off everything unrelated to this problem private int _SelectedRowsCount = 0; public int SelectedRowsCount ...

Intercepting the value change of SetChildIndex

Hi everybody! In a .NET CF-form i have multiple panels. I want to have a property that should always be informed about if a panel is in the front. Can this be done using the GetChildIndex() method? If yes, how do i intercept the change to SetChildIndex()? Thanks in advance ...

How to create Windows Mobile 6.5.x finger friendly stock controls?

I'm developing a Windows Mobile application in C# using .NET Compact Framework 3.5. My target version of WM is 6.5.x. It was my impression that Microsoft has updated the stock controls in this release of the OS to be more finger friendly (larger fonts, greater space between rows in listboxes, etc.) but when I create, for example, a ListB...

visual studio grid snap to edge spacing

I'm designing a form in VS2008 and I want to snap controls to the left and right edges of the form but with more space than it gets now. I tried changing the gridsize but that doesn't do it. The form is for the compact framework so i'm designing for a smartphone I don't know if that makes a difference. I guess it ought to be the same...

Form.FormBorderStyle Native Exception Access violation

On a WindowsCE platform (custom build) our C# gui uses regular forms to show an "popup menu". We set the FormBorderstyle to None as we don't want the form controls to be visible. Some clients reported "Gray boxes" after a while. After some testing here we could reproduce the problem quite fast. When we open 2 different menu's (forms) co...

Using Entity Framework with .NET Compact Framework 2.0 and SQL Compact 3.5

I have VS 2008 SP1 and SQL Compact Compact 3.5 SP 1 installed. I can see "ADO.NET Entity Data Model" when I go to Add -> New Item in Web Application project but same is not shown in Smart Device 2.0 application. How to use Entity Framework (which version) with .NET CF 2.0 application and SQL Compact 3.5 SP 1? ...

Profile Memory useage for my Windows Mobile Application

Is there a tool that allows me to profile the memory usage for my Windows Mobile Application. My app has a section of code that is right up against the limit of the total memory. I have tried to setup my code so that the references to large objects go out of scope before new references are needed. But I need a way to see if it is work...

MSSQL Compact Edition - Visual Studio generated datasets vs. my own custom code using SqlCommand etc. or some other options available?

Sorry for maybe not so clear title of this question but I'll try to explain it better, so bear with me a little longer :) We have some C# app on a device with Windows Mobile and it uses MSSQL CE database to store its data (no surprise here, I presume). The problem is that any change in db schema (new columns, different type of data in c...

.net Reflector "Object reference not set to an instance of an object"

Hello, I'm working with .net Reflector to view some .net Compact Framework .dlls and I'm getting an "Object reference not set to an instance of an object" error for one of them. I downloaded the trial version of 9Rays.Spices.Net and it loaded the .dll just fine. The only problem is that I'm getting only every other method. I was able...

In VS 2003, how to suppress deployment of .NET CF 1.0 every time I debug?

I'm (unfortunately) using VS 2003 to develop for some Windows CE .NET 4.1 mobile devices. The app is written in .NET Compact Framework 1.0 (the OS cannot support any later version of the .NET CF). Whenever I run my app from Visual Studio, it copies/tries to install .NET CF 1.0 to my device: Copying netcf.all.wce4.armv4t.cab It takes ...

How to Play .WAV in .Net Compact Framework (Datalogic Memor) Windows CE 5.0?

I have a Data logic Memor with Windows CE 5.0 on my Applications i used only Message Box and Color Changing Labels for My Validation and Error Handling. Now my problem is that i need to play .wav file on validation so even users do not need to look on screen every time they used the Scanner. I tried this link http://msdn.microsoft.co...

.Net Compact Framework - Calling ActiveX Object that uses [out] SAFEARRAY(float) *

In the Compact Framework 3.5, I am attempting to call an ActiveX object that has an IDL function signature: HRESULT MyFunc([out] SAFEARRAY(float) *var) The Interop generation creates the msil [out] class [mscorlib]System.Array& marshal( safearray float32) Which seems reasonable enough, but I keep getting a "NotSupportedException"...

How to get a CF custom editor working

Hello! I am working on a custom control library for WM6 smart devices (.net cf 3.5). I created a custom control named GradientPanel, guess what it does. A class called GradientColor describes how the background should be rendered. I already created a custom typeconverter so that the GradientColor property of a GradientPanel instance is ...