compact-framework

compact framework windows CE using ExtEscape to control the brightness

I need to be able to control brightness of my Windows CE 5.0 device. I've found that there is an API function ExtEscape to do that ( http://msdn.microsoft.com/en-us/library/aa453063 ) but it needs a structure ContrastCmdInputParm (http://msdn.microsoft.com/en-us/library/Aa447689 ) as a parameter. Since ExtEscape is unmanaged, I cannot ...

Why does deploying a .NET Compact Framework assembly cause .NET Desktop Framework assemblies to be deployed?

I am trying to get one of my developers set up to work on a fairly large .NETCF project. When we try to simply deploy the solution and all of its projects to a target device, deploying one of the projects triggers several assemblies from the desktop framework to be copied from the GAC to the device. What on earth could cause this? The...

Google search is not working in web browser control

Hello, I have developed a browser using the standard WebBrowser control in my application that is built against CF 3.5. Google search is not working in the browser. That is when i navigate to www.google.co.in and type a keyword and click on the serach button nothing is happening. Outside the application from the device if i try the sam...

C# Net CF - how to take a picture without interaction?

Hello everyone, Is there a possibility to take a picture using phone's camera without user interaction? I'd like to write a short app that only takes sequence of pictures and the user should be able to set number of pictures, location, quality and time between shots. After starting the app should take pictures without further interactio...

How can I convert a C# application that uses StandardInput and StandardOutput in .NET Compact Framework?

I have an application that uses the Process class, StandardInput, and StandardOutput to communicate with an external executable. I am using this to pass strings back and forth, and it works well in my Windows application. On the mobile device, I do not see StandardInput or StandardOutput in the Process class. Is there an easy way to r...

VS2008 Smart Device Class Library Project Template

I was trying to create a new Class Library project targeted for the .NET Compact Framework. However, when I select "New project -> Smart Device" I only have the Smart Device Project template. I've checked the folder: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\CSharp\SmartDevice\1033 It contains severa...

Protocol buffer deserialization and a dynamically loaded DLL in Compact Framework

I saw a question related to this on the full framework here. Since it seems to have stayed unresolved for quite a while and this is for the compact framework, I though it would be better to create a new question for it. I want to deserialize types for which I am loading assemblies dynamically (with Assembly.LoadFrom) and I am getting a ...

How can i draw on top of an control which has many controls in it? (Z-order top)

Hi! I have a large panel with lots of pictureBoxes inside it. Is it possible to draw on these pictureboxes by drawing on the panel? What i want is that the actual drawing is on top of the panel. Is this possible to do, if so, how? Thanks in advance ...

how design architecture of .NET CF WinForm?

I'm starting with .NET CF WinForm application and I have some experience with .NET WinForm. What is better for UI, form for each dialog or one form and changing user controls on that form? I'm asking for that, because screen on mobile devices are very small and I designed more then ten different screens for my application. ...

Retrieving Windows Mobile browser history

How can I retrieve a list of urls a user has visited on a Windows Mobile phone? I've written a program that successfully retrieves the visited urls in a user's cache, using FindFirstUrlCacheEntry and FindNextUrlCacheEntry - but as I understand it this is not the same as the user's actual web history. In any case it does not seem to give...

Cannot compile .NET CF project containing Design time attributes without Visual Studio?

I'm working on a .NET Compact Framework 3.5 app. I have an automated build machine that does not have Visual Studio installed, and all has been fine. I'm trying to a a new solution containing control projects that have DesignTimeAttributes.xmta files. MsBuild on the build machine is failing with cannot find file, C:\Program Files\Micr...

Uncatchable AccesViolationException

Hi all, I'm getting close to desperate.. I am developing a field service application for Windows Mobile 6.1 using C# and quite some p/Invoking. (I think I'm referencing about 50 native functions) On normal circumstances this goes without any problem, but when i start stressing the GC i'm getting a nasty 0xC0000005 error witch seems unc...

problem parsing with XMLReader (using ReadSubTree)

Hello. Im trying to build a simple XML to Controls parser in my CF application. In the code below the string im trying to parse looks like this: "<Panel><Label>Text1</Label><Label>Text2</Label></Panel>" The result i want with this code would be a Panel with two labels. But the problem is when the first Label is parsed the subreader.R...

Simple File-based Record Storage with Fast Text Searching for Compact Framework and Silverlight

I have a single table with lots of records (> 100k) that I need to be able to index and search on several text fields. The easiest searches will have the first part of the string specified (eg, LIKE 'ABC%' in SQL). The tougher searches will need to search for any substring within the text fields (eg, LIKE '%ABC%' in SQL). I need to run ...

Access HTTP POST data in OpenNETCF Padarn

Anyone know how to access HTTP POST data in the Padarn web server? They wrote the POST data will be in Request.Form, but there is always nothing. ...

Compact Framework best practices: Building a GUI

I'm maintaining a Windows CE app built with the .NET Framework that has about 45 forms. There are 5 'sections' which lead to the function you want. The application is 100% full screen and it is important that it can't be minimized. Since there are so many forms, it's difficult to keep track of which form should be displayed after one is...

Is there any performance overhead in using RaiseEvent in .net

Is there any performance overhead in using RaiseEvent in .net I have a code which is similar to following. Dim _startTick As Integer = Environment.TickCount 'Do some Task' Dim duration As Integer = Environment.TickCount - _startTick Logger.Debug("Time taken : {0}", duration) RaiseEvent Datarece...

ListView wont release focus in .NET CF 3.5

I have a form with a ComboBox and a ListView, when I press the down key on the Dpad focus moves from ComboBox to the items in the listView. But then I cant get out of the ListView and focus on the ComboBox again, I can only go up and down in the ListView items, how do I let the user go back to the ComboBox? ...

Setting system date and time from the application

I have a application that is developed using .Net Compact frame work 3.5, i need to synchronize the device date and time with the central server on every web service call. Thanks. ...

How can I dial the default connection on Pocket PC 2003 ?

I am working on a PPC2003 application. The devices on which the application has to run have a modem and VPN connection set. I want to automatically dial the system default "work" connection, which is the VPN one, which dial the modem one first. The user has another application who does automatically make the system dial the default...