opennetcf

RAPI Approach: 1 static instance for the entire winforms app vs create,connect,dispose

In many places in our application we have code like this: using(RAPI rapi = new RAPI()) { bool connected = TryToConnectWithTimeout(rapi); if(connected) DoSomethingWithRapi(rapi); } This has worked well so far. We never have more than 1 rapi instance at a time. Until now: But now we want to listen for the connect event on rap...

OpenNETCF Signature control question

I am using the Signature control in OpenNETCF. It works great for most everything I need. However, I need a way invert the signature and load it back in. It has a call to get the "bytes" for the signature (GetSignatureEx()). It returns a byte[] of the signature. This signature can then be loaded back in with LoadSignatureEx(). I ca...

Access HTTP POST data in OpenNETCF Padarn

Anyone know how to access HTTP POST data in the Padarn web server? They wrote the POST data will be in Request.Form, but there is always nothing. ...

Opennetcf read sms with c#

Does anyone know how I can read the SMS on my windows mobile 6 phone? I would like to do this in C#. I'm currently doing this with InTheHand: foreach (InTheHand.WindowsMobile.PocketOutlook.SmsMessage mess in sess.SmsAccount.SentItems) { if (mess.Received.Year == thisYear && mess.Received.Month == thisMonth) ...

Opennetcf how to read sms messagestore with c#

I'm currently reading the messagestore with InTheHand, but I want to do this with OpenNetCF. Can someone post any samples? Here is how I do this with InTheHand: foreach (InTheHand.WindowsMobile.PocketOutlook.SmsMessage mess in sess.SmsAccount.SentItems) { if (mess.Received.Year == thisYear && mess.Re...

OpenNETCF DirectShowPlayerControl display is going black randomly when playing videos if the player is disposed and recreated

I have a application that runs on touch enabled device with WinCE 3.5 OS. I have a show player control to display adds when the system is left idle for some configured amount of time.. So the DirectShowPlayerControl will be iniated every time the show player is launched and will be destroyed when it is closed... The player for the firs...

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...

Windows Mobile Professional 6.1 how to test internet connection

Hi, I have a WM 6.1 Prof. application that checks updates when user wishes to do so. I want to check if there is any avaliable connection (GPRS or Wifi) before it attempts to connect to server. I am also using openNETCF.NET dll here is what I have done but it doesn't work everytime, also I am not sure which type of connection should ...

Application refuses to start after first time using OpenNETCF.Windows.Forms.Applicaton2.Run()

I have a compact framework application that needs to be start hidden with Windows. So i created a shortcut in the Startup folder. The application starts fine but to my amazement despite i did a this.Hide() on the constructor of the form, it still shows. So i searched and found out that Application.Run() will ALWAYS show the window but ...

Events occuring multiple times in OpenNETCF.IO.FileSystemWatcher

Whenever I am subscribing to FileSystemWatcher notification, multiple events are occuring when I create new file or change existing file. Events are occuring in following sequence: New File Created Changed Changed Changed Changed Changed Changed Change Changed Deleted Changed Rename Renamed Delete Deleted Rename and Dele...

OpenNETCF.Net.Networkinformation Examples - Querying WiFi Information

I've started playing with the OpenNETCF Framework to capture information related to the WiFi connection available on the device I am writing an application for. I found a very usefull example at http://msdn.microsoft.com/en-us/library/aa446491.aspx but found that: a. I could not get the MAC address for the AP I was currently connected t...

Windows Mobile 6.5 : Cannot create SubKey in Registry

Hello, I have code below which has been working on devices of type Windows Mobile 5 and 6.1 private const string OwnerSubKey = @"ControlPanel\Owner"; regKey = CERegistry.CurrentUser.CreateSubKey(OwnerSubKey); When I have a 6.5 device cradled and the debugger hits the line above, I get "Type: System.Runtime.InteropServices.ExternalE...

windows mobile 6.1 bar code problem with .Net compact 3.5 application

We have a .Net compact 3.5 application running on windows mobile 6.1 platform. We run it on Intermec CN50 PDA. Today we encountered a weird problem. The bar code functionality stops working after we logged in our application for no reason. Even weirder, the bar code functionality will stop working with ALL other apps after this even aft...