compact-framework

Persisting/retrieving settings at runtime using .NET compact framework

I want to save/restore my settings of my Windows Mobile application in runtime. The amount of data is insignificant, using database is an overkill. What would be the best practice for a task like that? I thought of something similar as Settings : ApplicationSettingsBase class in .NET full framework, but it is not supported in the compac...

Progress bar click (Compact framework)

I'm using a progress bar to display the battery status. If the user clicks on the progress bar i want to display a popup with details. Excluding the solution that requires checking if the click coordonates is in the bounds of the progress bar has anyone found another solution or a workaround to this? ...

Vb.net compact framework and Saving XML (app.config)

Hello... I am writing my first windows ce app. I am using an xml file (app.Config) to store state data... basically user preferences on the last location (connection string) that the person was using before closing the app. I am having trouble understanding what is happening on deploy. It looks like it is copying my xml file to the de...

Directshow in C# for windows mobile- strategy?

I'm trying to figure out how to add some directshow capabilities to a C# application (.net cf 3.5 running on mobile 6 and up), and I'm having a hard time figuring out how to bridge the gap between using unmanaged c++ class(es) in managed C#. I've already written the functionality I need in C++: Basically, I have a manager class that use...

How can I stop exceptions in a web service being thrown by the client/caller?

I am trying to debug a problem with a .net compact framework application I have running on windows mobile 6. It occurs when I call a web-service call on my development machine. I don't need any help with the actual error, but with invoking the debugger at the correct time. I run the web-service in debug mode and am able to trigger a br...

Limit the size of a user control at design time

I have a namespace Company.UI.Forms where we have a form base class BaseForm that inherits from System.Windows.Forms.Form. I need to limit the size of this form, so that if a concrete form, say ExampleForm, derives from BaseForm, it should have a fixed size in the VS designer view. The fixed size should be set or defined in some way (i...

What's the most efficient way to store objects in a SQLCe Database?

I need to increase the performance of a compact framework application which uses a SQLCe database to persist cached objects between sessions of the application. Currently, objects are serialized into XML and stored in a SQLCe database, but having run a profiling tool it seems that there is quite an overhead in doing this. I was thinking ...

Sharing code between compact and full .NET Framework

I have a whole bunch of projects which I want to reuse between the .net compact framework and the full framework. I have read Daniel Moth's incredibly informative article about this subject (http://msdn.microsoft.com/en-us/magazine/cc163387.aspx) So the two main methods are: 1) Target the compact framework (ie. go for the lowest common...

Memory profiler for .NET Compact Framework

Is there a tool I could use for profiling (memory) a .NET compact framework 3.5 application (Windows Mobile)? Thanks! ...

How do I Emulate/Debug Windows CE 5.0 applications in C#?

Here's my problem. I'm currently trying to develop a .Net Compact Framework 2.0 application (in C#) to a Windows CE 5.0 device. Firstly: How do I debug/emulate the application in Visual Studio 2008 ? I doesn't mean debugging an application already deployed on the device, but debugging the version on my desktop. I have limited or no acc...

Does a FileStream object (.NETCF, C#) created using handle returned from Win32 API CreateFile (C++, P/Invoke) prone to .NET Garbage Collection

UPDATED QUESTION Since the ctor is not supported by .NETCF (public FileStream(IntPtr handle, FileAccess access). Could you please suggest other ways of sharing large file in memory between managed and unmanaged code on a limited resource (RAM) platform. Basically I want to map the file in the upper region of 2GB user space (Win CE 5.0) ...

how to store a application mobile state in memory?

Hi, I am developing a mobile application, in C#, with the .NET Compact Framework 3.5. It needs to store the state in memory, i.e., if the application crashes, the application has to reboot into the state before the crash. All business logic has to be stored too, as well as the forms. I would like to know if there is an easy way to mana...

How do I debug my .net CF app on my physical device?

I am pretty new to WinMo development. I managed to write my first app, debug it via the emulators but I failed to run the debug session on my physical phone. I connected my phone to the development PC via ActiveSync, but that alone did not make my phone show up on the list among the selectable emulators. Is there anything I need to do be...

How can I play a midi file with .NET compact framework 2.0?

I have tried this but it does not work (even if I specify .wav file as an input). Also tried this but still no sound. Trying to avoid .wav because they are BIG if you compare with midi. I'm trying this with VS 2008 emulator. Is that the problem? Should I test on the real hardware? What is the best way to play midi on the .NET compact ...

ThreadStart.BeginInvoke throws NotSupportedException on Compact framework

I'm working with threads on a compact framework project and have code that looks something like below. When I try to step into StartThreads(), a NotSupportedException is thrown. This seems a bit wierd, why is the exception thrown on the line calling StartThreads() and not inside, and what is it that's not supported on CF? I think its Thr...

AsyncCallback for a thread on compact framework

I need to implement threading to improve load time in a compact framework app. I want to fire off a background thread to do some calls to an external API, while the main thread caches some forms. When the background thread is done, I need to fire off two more threads to populate a data cache. I need the background thread to be able to e...

Interpretation of "Remote Performance Monitor" Memory information...

We are having a memory issue with one of our application running under Windows CE 5 (.Net 2.0 SP2). I have started using the .NET Compact Framework Remote Performance Monitor. However, the outcome is not really clear to me. Here are the information I got (at a particular time): GC Heap ________________________________ 5'193'728 JIT H...

Directshow in c# compact framework: trigger handling problems for a Filtergraph's IMediaEvent

Hi- I'm working on implementing directshow capability in a C# dll. I'm basing my work off of the C++ based "CameraCapture" example Microsoft provides with the Windows Mobile 6 sdk. Things were going well (thanks to earlier help on this site), but I've run into a bit of a snag while trying to listen for directshow events in C# land: I ...

Windows Mobile: using phone's camera with C#

Hello! I want to show the image that mobile phone's camera its taking on a control in a WinForm. The idea is that my application works like camera's program. I want to show the image like if the user is going to take a photo. How can I do that? Can I do that? If you need more details ask me. Thank you! ...

How do you resize a Bitmap under .NET CF 2.0

I have a Bitmap that I want to enlarge programatically to ~1.5x or 2x to its original size. Is there an easy way to do that under .NET CF 2.0? ...