compact-framework

.Net compact framework: inherit from DataGridTextBoxColumn, GetColumnValueAtRow is missing

The DataGrid in the .net compact framework (I'm using v3.5) is a bit limited. I try to display a bool-value with app-defined texts like "on/off" or translations of "true/false". I've created a class DataGridBoolColumn which inherits from DataGridTextBoxColumn and there I override the Paint-method. But I've problems with retrieving the cu...

VS 2008 unable to find user controls in .NET Compact Framework application

When I open the form in the application, I am seeing an error for each user control in the project. Warning 13 The variable 'usercontrol1' is either undeclared or was never assigned. C:\Projects\MyApp\src\MyApp\FormMain.Designer.cs 202 0 and a matching Warning 6 Could not find type 'MyCompany.Controls.MyApp.us...

VoIP application in windows CE

Hi all, I want to develop VoIP application in Windows CE based device and included .NET compact framework 3.5 with C#,but I am newbie where do I start? Any API,samples? Thanks for your answers.. ...

Why is the same Public Key generated even with different key container names?

private readonly string KeyContainerName = "MyKeyContainer"; public void GenerateKeyPair() { Debug.WriteLine("Generating Key Pair"); CspParameters cp = new CspParameters(); cp.KeyContainerName = KeyContainerName; cp.Flags = CspProviderFlags.UseDefaultKeyContainer; ...

Programatically switch betwen WiFi networks in .NET CF?

Is it possible to switch between WiFi networks in WM 6 and .NET CF v3.5 ? I'm writing a .NET Compact Framework v3.5 app for a Windows Mobile 6 device. I'd like to be able to switch between 2 different WiFi networks via C#. The first network is an Ad-Hoc wireless network with another device close by, and the second network is any other a...

Is there a way to findout what line an exception was thrown on?

Say I have a method like this: public void SaveData() { try { foreach (var somevar1 in list.SomeType1s) { CEData.SaveRow(sometype1) } foreach (var somevar2 in list.SomeType2s) { CEData.SaveRow(sometype2) } foreach (var somevar3 in list.SomeType...

Running a program with System.Diagnostics.Process.Start causes a MissingMethodException

Hi, I'm working on a Compact Framework 2.0 project, and I'm trying to launch a program "B" from within another program "A" using Process.Start. I've done this several times before, but I'm running into some weird issues this time. Program "B" does launch, but it causes a MissingMethodException, basically telling me that it is missing ...

C# / NET CF 2.0 DataSet serialization problem

Hi, I'm creating a XML DataSet from my destktop application: <?xml version = "1.0" encoding="Windows-1252" standalone="yes"?> <MyDataSet> <xsd:schema id="MyDataSet" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:element name="MyDataSet" msdata:IsDataSet="true"> <xsd:com...

How to open a .html file in a smartphone.

Hi, i have a C# program written on visual studios 2008 windows mobile 6. I want to open a html file in the path @"\My Documents\maptoolkit.html" and after that it will open the mini-opera browser display whatever's necessary. It is by default the mini-opera browser if i opened it directly. How do i do it? ...

Security in windows mobile app and wcf service

I'm kinda new in the mobile world and wcf world. I have develop a mobile app that communicates with a WCF service. What security topics should I look into? I do not know much about security either ... usually you try to secure the channel? the messages being sent? ...

ListBox (Compact Framework) a way to hide border?

Is there a way to hide "System.Windows.Forms.ListBox()" border? thanx! ...

Verizon VZW CDMA GPS support in .NET Compact Framework app

There seems to be a challenge around getting .NET Compact Framework applications to be able to access GPS data on Verizon devices, which are CDMA devices. I've searched but haven't been able to find the solution to this. I heard there was something like a registry setting that needed to be enabled but haven't been able to find the detai...

WCF service host in IIS

I have a mobile application that interacts with a WCF service. Do I have to host the wcf in IIS in order for the mobile to connect to it via internet? ...

Wcf proxy generation on windows mobile application.

For my mobile app, I used the Add Web References to generate the client proxy to interact with my WCF service. Then I read somewhere there is an equivalent of SvcUtil for compact framework: NetCFSvcUtil. Should I be using the NetCFSvcUtil instead of going throught the Add Web References? Or the Add Web References uses NetCFSvcUtil in ...

NotSupportedExceptions thrown everywhere when debugging in windows CE.

I am doing some work on a windows CE 6.0 application. The application loads a number of external assemblies dynamically using. Assembly assembly = Assembly.Load(path); These .dll files are outside of the solution, but there are classes in each of them that implement a common interface. Once the assemblies are loaded the application l...

smartdevice C# dll in VC++

I'm trying to create a DLL in C# for windows mobile, and I have an error when I try to access the dll in VC++. Is possible to create a DLL in C# and access it in VC++, using Windows Mobile? I'm using Windows Mobile 6 SDK. The following code works very well in Desktop. The C# code: using System; using System.Collections.Generic...

NetCFSvcUtil for generating wcf proxy for Sync Framework good or bad?

In all samples it uses the Web References to generate the proxies. But my service is a WCF service. Should I be using the NetCFSvcUtil to generate my proxy ? or shouldI just simply use the Web References one. I tried using the ones generated by NetCFSvcUtil, but I'm just stubbling on different issues. First, the FaultException for ...

Windows Mobile to Zebra Printer over WLAN (ad hoc)

I have an Intermec (CN3) Windows Mobile 5.0 device and a Zebra P4T printer. The printer does not have blue tooth. But the printer does have wireless capabilities that can be configured from a PC. http://j.imagehost.org/0665/printer_network_config.png The working environment does not have a wireless network that we can take advantage ...

Run command line program silently with c# on wince

Hey everybody, I once again need some help. I'm using the .net Compact Framework and the programming language C# to develop for mobile devices that are running WinCE 5.0. What I want to accomplish is to programmatically mount a network drive. To do so, the app runs the following code in a background thread: ProcessStartInfo startInfo...

.NET compact framework and memory management: OOM Exception

My .NET CF 3.5 application receives an Out of memory exception when DOM processing an xml file of size 2MB. Now I understand that this should be changed to SAX processing, but I was wondering why this error is received. From http://blogs.msdn.com/b/mikezintel/archive/2004/12/08/278153.aspx, "Windows CE creates one additional virtual ad...