compact-framework

Windows Mobile - Compact Framework program as a service ?

What is the best way to have my C# Compact Framework program running in the background on a Windows Mobile device ? I need to respond to different events, such as a text message arriving with a specific content. I would like not to start up any UI when the process is started, but just run in the background until UI is needed. How can th...

.net Compact Framework 4.0

Will their be a new release of the compact framework with VS2010 and .net 4.0 and if so what new features will it include? WPF? linq to SQL? etc ...

When is memory allocated in the .NET compact framework?

When is memory allocated in the .NET compact framework? If there is a difference between value and reference types, please detail. Documentation or steps to confirm are appreciated. In particular, consider this scenario... private MyClass item; // here? public void MyMethod() { item = new MyClass(); // or here? } ...

DrawString over a TextBox

Using Visual Studio 2008 SP1, the latest Compact framework and Windows Mobile 5. I need to use DrawString to put a string over a TextBox. But as soon as I draw the string the TextBox Control just over writes it. (I Know because I drew slightly off the edge of the control and my text is half visible (where is is off the control) and half...

What was the most advanced stuff you did with compact framework

At work I use mostly the .NET Compact Framework 3.5 for developing applications that run on smart devices. Our devices are not phones or handhelds - they are measurement instruments which you get with a whole punch of features. Our application is pretty advanced - we are even using a N-Layer architecture, a self-made GUI framework and ev...

Sqlite Optimization: Read only scenario

I use SQLite for a number of application on the desktop and PDA. Most operations are readonly, as SQLite functions as a data store for reference material in my applications. Basically, I am looking for suggestions on improving performance in a scenario where you know the access to the data is only read-only. Maybe via various pragma se...

Windows Workflow and compact framework

Can you use Windows Workflow and Compact Framework 3.5? I've just got an evaluation version of Visual Studio 2008 and I've had a look around but can't work out quickly if there is a way of doing this. I just don't want to waste anymore time looking around if there is no way of doing it. ...

how to read files from uncompressed zip in c#?

Hi, I´m creating a PDA app and I need to upload/download a lot of small files and my idea is to gather them in an uncompressed zip file. The question is: It´s a good idea to read those files from the zip without separating them? How can I do so? Or is it better to unzip them? Since the files are not compressed my simple mind points that...

What's the best way for a .NET Compact Framework executable to delete itself?

I'd like my .NET Compact Framework app to delete itself after it finishes executing. What's the best way to do this? On a Windows machine it's possible to do this using a .bat file, but that's not an option on mobile devices. ...

Implementing Message Security in NETCF

As far as I know only a subset of WS-Security version 1.0 is supported in NETCF and it uses X.509 certificates. How can I obtain such a certificate to implement it in my application and prevent others to use my WCF service? ...

How do I keep a Windows Mobile Professional Device in the Unattended Power State

I have a .net 3.5 application running on windows mobile professional that uses sql server ce 3.5 and merge replication with sql server 2005 sp2, it not yet a 1.0 product. Every couple of minutes or so it starts a merge replication using a timer control. I suppose down the line I'll have to have some kind of push senario, either using l...

.Net Compact Framework - can I prevent garbage collector to stop some of my threads ?

Hi, I wonder if it is possible in a Compact Framework application to prevent the garbage collector to unconditionally stop at least one of the threads, or if it is possible to block GC collects at least in some portions of the code. I think it has to deal with setting real time priorities, but I found a lot of advices against doing it.....

.Net Compact Framework - is there any way in the SerialPort class to set the RTS control to TOGGLE ?

Hi, I found very annoying the fact that the SerialPort class in the .NET Framework doesn't allow to set the rts control to TOGGLE. There is a property called RTSEnable that lets me control directly the status of the RTS signal, but in a Compact Framework app there is not much precision to make it work well. Another solution can be to w...

.Net Compact Framework 3.5 HTTP POST

I'm writing my first Windows CE app using the .NET Compact Framework v3.5. I need the app to be able to do an HTTP POST to a URL. It appears that the .NET CF does not have System.Web. So, I could use some guidence on how to accomplish and HTTP Posts using the .Net CF. Thanks, Greg ...

How do you get the current directory in compact framework?

How do you get the current directory where your app is running? ...

Compact Framework - System.Threading.Timer stops when the user turns off the screen

I have an application that needs to "poll" a webservice to see if the user has any new messages waiting. I have no control over the webservice so I cannot switch to a "push" mechanism, I'm stuck making a request every X number of seconds to see what's available. I am using a System.Threading.Timer to make the request every so often, bu...

How to add a button to a compact framework DataGrid?

Is it possible to add a button to a column in the DataGrid for the compact framework? So far the only thing I can find is you can add textbox and that's it. What would be a good alternative to a DataGrid that can allow other controls? ...

Compact Framework - any implementation of the Image.FromStream (Stream, Boolean, Boolean) ?

In a .NET CF application I wrote, one of the features is to acquire frames from remote cameras. Frames are acquired as single jpeg images and displayed on the screen when available. It was a good enough solution, but I don't like the fact that the time needed to convert the stream into an Image object, with the Bitmap() constructor, is ...

How to import a SDF file

I started using a Sql Compact version of my DB and during the development it occured that the DB needs to be accessible over the network. Cause I wasn't able to find a way to share the SDF file over net without replication I need to import it into SQL Server 2008 (Express). Any Ideas? ...

How do you show animated gifs with .NET Compact Framework

Hello, I would like to display an animated gif on a .NET Compact Form. Currently I use a PictureBox control and toggle between .Visible = true and .Visible = false. After .Visible = true the gif is shown however it's not animated. How can I get the .NET Compact Framework to animate it? I already tried this but it doesn't work. ...