compact-framework

Can you specify the folder VS will use when debugging mobile apps?

Hitting debug will deploy the application to \program files\AppNamespace\AppName.exe and attach to it. However, my app runs on the storage card \SD-MMC Card. This means I'm debugging and running in different places, so I have a slight maintenance headache. Therefore the question is, anyone know if you can specify the folder VS will use...

Smartphone-style ComboBox behavior on PocketPC platform?

I develop applications for the PocketPC platform (.NET Compact Framework 2.0 and higher), and one of the problems I constantly run in to is the drop-down width for ComboBox controls is not wide enough to show very long string values. I've run across P/Invoke methods to widen the dropdown width, but what I'd really like to have is the Sm...

OutOfMemoryException When Creating a Large Bitmap in CF.NET

My compact framework application creates a smooth-scrolling list by rendering all the items to a large bitmap surface, then copying that bitmap to an offset position on the screen so that only the appropriate items show. Older versions only rendered the items that should appear on screen at the time, but this approach was too slow for a...

Handling Different Resolutions in Visual Studio 2008 for .NET CF

Hi, I am developing a .NET CF based Graphics Application, my project involves a lot of drawing images, We have decided to go for porting the application on different handset resolution.(240 X 240 , 480 X 640) etc. How would i go onto achieve this within single solution/project? Is there a need to create different projects based on res...

How do you display the "cannot connect" dialog in windows mobile when a webservice URL is unreachable?

Hi. On windows mobile when there is no internet connection and I try to browse the web using internet explorer i get cannot connect information at the top of the screen. It says cannot connect with current connection settings. To change your connection settings, tap settings. And I am able to tap Settings and setup network connections. ...

Is there a prevailing unit testing framework for the .NET Compact Framework?

I have plenty of experience with NUnit and MBUnit, but I'm new to .NET Compact Framework development and I'd like to get off on the right foot. Is there a prevailing unit testing framework for the .NET Compact Framework, and if so, what is it? ...

How do I set Network Management settings or make the dialog appear in C# on Windows Mobile?

In Windows Mobile, when you open Internet Explorer and type in a URL that your device can't connect to, you are notified of this and prompted to (manually) navigate to the screen where you can actually do something about this as a user (Network Management), like so: However, if a .NET Compact Framework application tries to connect to ...

WINMOBILE uploading a file from C# to a php webservice

I need to upload a file using C# from a windows mobile app to a website. It's running PHP as the webservice on the other side, though I guess it really doesn't have to if there's another way to be able to get the file up there. There is no server-side ASP support, however. My problem really isn't the PHP, it's the mobile C# code. Also,...

MethodAccessException on CF 2.0 List<T>.Sort

I've got some library code that works on a range of .NET runtimes (regular, CF, Silverlight, etc) - but a small block of code is breaking only on CF 2.0, with a MethodAccessException. I'm pretty sure it is a runtime bug, but does anybody know any good workarounds? It works fine in CF 3.5, but I need to be able to support CF 2.0 too. Spe...

Making the window [X] button close instead of minimise on Windows Moblie

The [x] button in the top bar of a window that normally closes the window in standard Windows, appears to do a minimise instead on Windows Compact. How do it make it close instead? I need to also be able to raise an event when this happens as I want to preform some logic on window close. ...

How to open a network connection from windows mobile with c#?

I am trying to convert a windows forms application to a windows mobile application (windows mobile 6 professional). It needs to get an XML document from a web server. It works fine if the device already has an open network connection, say if you open IE before running the app. But it hangs if there is not an open connection. I have f...

Accessing a list of avaliable Wifi APs, on Windows Mobile.

I need to query for a list of available Wireless Access points. I only need their SSIDs. The App is currently .Net CF 2.0, but it's not a problem going with 3.5 if we have to. ...

Rewriting eMbedded Visual Basic app

I'm looking at rewriting an eMbedded Visual Basic app I wrote years ago. I'm unsatisified with it because of various problems clients keep having with it now and then over the years, mostly along the lines of the app not loading anymore because a required dll/activex control has gone missing! This is so frustrating and naturally difficul...

Media on Windows CE using Compact Framework

I have the following requirements: I need a api that works on CE (x86) + .NET Compact Framework to play videos (Similar to CorePlayer API... Just free)? Is their anything else available or must I use CorePlayer? ...

Common C# source code for Windows and Windows Mobile

I have a goal to build an application with UI that would run on both Windows Mobile and "normal" desktop Windows. The priority is for it to "look good" under Windows Mobile, and for desktop Windows it is OK if it distorted. Before I invest days trying, I would like to hear if that is possible to begin with. There are several parts to thi...

NETCF DateTimePicker control problem running on hardware

I have been developing a compact framework app on an emulator, and some of the forms use DateTimePickers. These work fine in the emulator, but when running on the hardware they cause the form to close when a date is selected. No exception is thrown...the form just closes unexpectedly. Has anyone experienced this or know how to fix it?...

Why are my programs running from my SD card so slow?

When moving my .Net Compact Framework application to the SD-card of a Windows CE device, the program executes slower then running it from the internal memory. I thought, the start-up might be slower, but it is the whole program. There is no IO to the storage card. Why is my application so slow and how does the compact framework handles...

How to Debug .NET Mobile Device Application using multiple instances of Device Emulator

I would like to Debug .NET Mobile Device Application using multiple instances of Device Emulator. If I right click the project and go to Debug -> Start new instance in Visual Studio 2008 when an instance is already running I get the error Unable to copy file "obj\Debug\MyMobileApp.exe" to "bin\Debug\MyMobileApp.exe". The proce...

Is there an event in compact framework that fires on suspend and resume?

Or do I have to pinvoke native code? I don't want the power status...well I do, but I don't want to poll it all the time and would rather have an event fire. ...

How do I get WLAN information on my mobile device?

I want to build something like a network scanner, so that I see in my application on which AccessPoint I'm on and what parameters this net has. Some interesting point would be ESSID, signal strength, noise, channel. Are theses properties device independent or do I have to interface each device independently? ...