compact-framework

.net Compact Edition 2.0, SQL Server Compact Edition and replication

Hi Guys, I have been tasked with creating a mobile application for a Windows 6.0 CE device which is running .NET 2.0.7045.0 Compact Framework. I have SQL Server 2005 Express running on my local machine and I want to let the Mobile Application have a replication or snapshot of my database, so the users can update the data in the field. ...

Text-to-Speech library for Windows Mobile

Are there any free text-to-speech libraries available for Windows Mobile? Preferably with a C# (.net CF) API. Edit: It basically needs to be able to read from 0.001 to 999 and a few words like “kilometers, minutes, behind, ahead” Sample phrases: “1 minute 30 seconds behind” “3.45 kilometers left” I have no need for more advanced s...

Setting the Time Zone with Compact Framework on Windows Mobile 6

First, background: I have a .Net application that runs in kiosk mode on Windows Mobile 6 devices (IPAQ 210s). Our software actually tracks the user's time zone independently of the operating system, so we calculate the displayed time based on their time zone adjustment from UTC. As many may know, true kiosk mode is not easy to achieve ...

New Line in C# Notification (Compact Framework)

Hi, I'm trying to use a Notification control in a smart device C# project, but I can't seem to get a new line - I have tried using \n, \r\n and System.Environment.NewLine and none of these work - everything is still showing up on a single line in the standard Visual Studio 2008 emulator. How do I get a new line to show up? ...

.Net 3.5 CompactFramework Stack

All, I need a high speed stack on a .Net CF platform (ARM chip). Does anyone know if the standard (managed) queue classes work well enough for what I describe below? Anyone got an idea on how fast they are? If I do not used managed memory classes what should I use? The stack will need a maximum size (in megabytes ... 10 or 20 ... so mem...

OpenNetCF IPInterfaceProperties.DnsAddresses crashes

I am using OpenNetCF 2.3.0.39 and I am getting a hard crash when try to access the DnsAddresses.Count property. Is anyone familiar with this problem or a workaround? Dim interfaces As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces() For Each ni As NetworkInterface In interfaces Dim ipProps As IPInterfaceProperties = ni....

NetCFSvcUtil "Error: An error occurred in the tool."

I am trying to generate a WCF proxy client code for a Windows mobile application that uses basicHttpBinding and I'm continuously receiving the follow error: Error: An error occurred in the tool. Error: Error in the application I was able to generate the proxy before but I don't know why suddenly this happens. I have read the Sameh Sam...

How can I modify the Daylight Saving Time of my timezone on Windows Mobile?

My phone, running Windows Mobile 6, has suddenly decided to drop an hour every time I hook it up to my PC. I tried playing with the timezone settings in the Control Panel, to no avail. I've come to the conclusion the heart of the problem is in the Daylight Saving configuration of my timezone. I could not find any utilities to let me ed...

Windows Mobile - saving user data across application sessions

Hi I am creating an application where the user needs to log in to access data. I would like to save the user credentials when they first login and give a "Remember Me" option. Is there any class/interface implementation which I can use in my WinMo application in order to be able to do this? Or is SQL the only option available? Thanks....

How do I set up visual studio to work with .net 3.5 CF?

I'm trying to build a Windows Mobile 5 WCF client. This project currently uses web services but I'd like to convert it to WCF. I installed the .NET CF 3.5 redistributable on the device, but how do I get the "Add Service Reference" menu option to show up on my existing project in VS 2008? ...

Bogus TimeoutException reading .NETCF SerialPort

EDIT: Was a hardware problem.....getting a duplicate device or cable seemed to solve the problem. Hello, I am pulling my hair out trying to read a large quantity of data (~1MB) from a serial port in .NETCF. I'm reading a dump of GPS data, but I am randomly receiving a TimeoutException on the call to m_serial.Read(..) There is defini...

Strange behaviour with Microsoft.WindowsCE.Forms

I have a Windows Mobile application in which I want to check the device orientation. Therefore I wrote the following property in one of my forms: internal static Microsoft.WindowsCE.Forms.ScreenOrientation DeviceOriginalOrientation { get; private set; } The strange thing is that after that whenever I open a UserControl, the designer s...

LINQ to SQL replacement in .NET Compact Framework

I have been tasked with porting our .NET Desktop application to a mobile device. Our desktop application uses LINQ to SQL to interact with the database. However, LINQ to SQL is not available on mobile devices. We develop for Windows Mobile 5 and 6. I am debating between suggesting a different ORM that supports both desktop and mobile...

Rhino Mocks & Compact Framework

Hi I've been experimenting with Rhino Mocks for unit testing my .Net Compact Framework application, and have hit a problem. I can get a basic unit test using Rhino Mocks built, but every time I run the test that has the Rhino Mocks code in it, the test fails because it can't find the Rhino Mocks assembly. System.TypeLoadException: Coul...

Memory Leaks in .NET CF when running forms on separate threads.

EDIT - nulled thread before measuring finishing memory This is all running .NET Compact Framework 2.0 under Windows CE 5.0. I've come across some interesting behaviour in developing my App. Whenever I try to create a form and have it run a separate thread it seems to leak 392 bytes when it's closed and I'm unsure why. My approach so f...

Changing a Windows CE machines IP address programatically?

How do I change the IP address of a Windows CE machine? I want to do it from .NET Compact Framework! ...

How can I reconnect to SQLServer when disconnected?

I have coded my own tiny static DAL class for .NET Compact Framework and local SQL Server that does just what I need; GetTable(SQL,params), Exec(SQL,params), ExecScalar(SQL,Params) etc. I wanted to do everything by SQL so that's how I rolled, if there are better ways to handle SQL Connection in C# -except ORM- please let me know. Here's ...

Warn users of their account expiry on WinCE 5.0

I have a Compact Framework application running on HP thin clients and users sign into the application using their Windows credentials. All good so far. Now I need a way to warn a user that their Windows password is about to expire. Is there a way to detect this with Compact Framework 2.0? I am guessing some AD programming will be requir...

.NET CF AutoScroll

I have a TabControl with multiple pages. On one page, I just have a label and I want it to fill the page and scroll if necessary. Despite trying what seems like every combination of anchor and dock, the label won't scroll. I've set the AutoScroll property of the page to true but no luck. I've seen articles about using a ScrollBar and man...

C# Transaction

I am looking to implement database like transactions in C#. I am processing multiple XML files. Any particular XML file can call child XML file during processing. The processor will start processing child XML file. If initialization conditions fail or there is an exception, then I want to resume processing parent XML file. This is the re...