compact-framework

C# this.Controls.Remove problem

What is the problem with this code? for (int w = 0; w < this.Controls.Count; w++) { if (this.Controls[w] is TransparentLabel) { la = (TransparentLabel)this.Controls[w]; if (la.Name != "label1") { la.Visible = false; la.Click -= new System.EventHandler(Clicked); this.Con...

Smart or Not: Persist serialized data (dotnet-protobuf, protobuf-net, json) in a Relational DB in CF

I have started reading some of the posts related to protocol buffers. The serialization method seems very appropriate for the transfer of data to and from web servers. Has anyone considered using a method like this to save and retrieve data on the mobile device itself? (i.e. a replacement for a traditional database / orm layer) We curre...

How can I set or clear the proxy server used by a Windows Mobile device?

I want to programatically configure the proxy settings for the wifi network on my Windows Mobile phone. Does anybody know how to do that using the .net compact framework? ...

Windows Mobile 6 and twitter

hi, I'm trying to implement Twitter into a mobile game that I'm developing and having difficulty with using the available libraries. Could someone explain how I use a library such as nTwitter on the .net compact framework 3.5 and windows mobile 6 professional SDK Thanks in advance for any help Tom ...

Developing for mobile devices and desktop

Hi, I'm starting a new project. It will run on devices running Windows CE, Windows Mobile 6 and will also have a desktop version. The software will connect to some equipments through the serial port, using it's own protocol. Basically it will: connect to the equipment send and receive info read and write binary files These tasks wil...

GetIdletime in windows mobile using c#

Hi, I need to get the idle time of the device in one of my windows mobile app. I tried all the way i couldn't get it. could Any one post the code for it.. Thanks in advance. ...

Alternative to WebBrowser control on Windows CE

Welcome, Has anyone know any alternative to WeBrowser control from .NET Compact Framework, which may be used with Windows CE? Unfortunately standard web control from .NET CF 2.0 doesn't work on WinCE. Is any way to present formatted text in embedded control in .NET CF application targeted to Windows CE? Regards, Grzegorz ...

.NET Compact Framework app that will run on both Professional and Standard

Is there any guidance on creating apps that will run on both professional (touch-screen) and standard (non-touch-screen) devices. I have a simple application that is mostly text and buttons that in theory should be able to run on both professional and standard devices with little if any modification. It seems the IDE wants to make this...

Avoid compiling when using Decimal.Round() method (C#/CF)

Is there a way to tell to VS2005 to get compiler error when using "some defined" method? It probably sounds strange, but I do not want to compile when using Decimal.Round(). Reason: CF does not round by "awayfromzero", so I created a method to do this job. But sometimes I (and team) forget that is not to use Decimal.Round. So I'd lik...

Accesing WinCE ComboBox DroppedDown property (.NET CF 2.0)

I'm implementing custom behavior sub-classing the form controls, but I cannot manage to access the DroppedDown property of the ComboBox. Looking in the help, it's supposed to be supported in CF.NET 2.0: using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using Syst...

How to create Web services and link it to Smart device Application?

I am a fresh graduate and hired to develop Smart Device Application.They use Data logic Memoir with windows CE 5.0. Even though i have novice skills in programming in vb.net,I just finish my project and applications for Data logic memoir wherein the data has been save to text file or SQL compact server database in the Handheld Device a...

CF TreeView - Selected Item when control looses focus.

Hello. I know that "HideSelection" property is missing in CF. But i still need to handle situation when an item is selected that it remains selected (greyed) even when the control looses focus. I have tried using this peace of code, but with no success. I get an exception in GetFocus() method and i dont know what im doing wrong. Any h...

.NET CF 2.0: Stream implements IDisposable ... kind of?

I've run into something odd in a .NET CF 2.0 project for Pocket PC 2003 (Visual Studio 2005). I was dealing with a System.IO.Stream object and found that the IDE wouldn't auto-complete the Dispose() method. I typed it in manually and received: 'System.IO.Stream.Dispose(bool)' is inaccessible due to its protection level The error is...

PostMessage does not seem to be working.

I am trying to use PostMessage to send a tab key. Here is my code: // This class allows us to send a tab key when the the enter key // is pressed for the mooseworks mask control. public class MaskKeyControl : MaskedEdit { // [DllImport("coredll.dll", SetLastError = true, CharSet = CharSet.Auto)] // static extern IntPtr SendMessag...

Can we Trigger Beep Sound In Data logic Memoir windows C.E 5.0?

My Boss Want me to add beep sound in datalogic memoir as a trigger if the output is correct or not. But my problem is i do not know how to do it. Did you guys successfully make it beep? ...

CF - How do i access a .gif in my Resources folder

Hello. I have added a simple .gif file into Resources folder in my project. Now i have created a user control with pictureBox. How can i add the .gif to pictureBox.Image = new Bitmap (path). What is the path in this case? thanx ! ...

Windows Mobile UI Architecture

Hey Guys, I am tasked with rewriting the a mobile client (Win CE, Win Mobile 6 and later) application, because our current implemetation, based on MCSF is no longer usable. I have found this MVC framework: http://blogs.msdn.com/priozersk/archive/2008/10/10/mobile-mvc-framework-part-1.aspx Is this the current hotness? Our needs inclu...

Login implementation for windows mobile

What is a good approach for credential checks for windows mobile app. Knowing that it is an occasionally connected device. Should I keep the user credential into the local database? If the credential doesn't exist in the db, try to see if it has internet access and do the check through a web service? If both fails then display an err...

WCF - Compact Framework - Pull data from mobile client

Hello guys, I want to communicate xml serialized objects from the server to the client and the other way arround. Now it is (probably) easy to invoke methods from a mobile client (compact framework) using WCF, but is there a way so that the server can invoke methods on the client side or some other way to pull data from the client? I kno...

Compact Framework: Show Dialog and executing code AFTER the form shows

Working in .NET Compact Framework, C#, .Net 3.5, Visual Studio 2008. Targeting Windows Mobile and CE devices from the same project (it's a CE app, runs on both types of devices). I have a form that must be displayed using ShowDialog. the form itself is just a blank screen with a "loading..." message on it. AFTER the form displays on the...