compact-framework

WCF hosting in .NET compact framework

I would like to host a service on a WinCE device. The WinCE device is the host which can be accessed(control and data acquisition) by multiple clients (PC or WinCE) over serial port, TCP, USB etc. I was considering using Protocol Buffers for serialization on the wire. It would be ideal to use WCF or remoting but as far as I see they are ...

Boolean and Math Expression Parser

Hello, I am writing an application that allows a user to enter a boolean expression. I need the ability to evaluate the entered boolean expression at runtime and am looking for both a parser and a expressoin validator. Parser The parser needs to take a boolean expression as a string and return true/false. Example: string expression...

Pocket PC: Draw control to bitmap

Using C#, I'm trying to draw an instance of a control, say a panel or button, to a bitmap in my Pocket PC application. .NET controls has the nifty DrawToBitmap function, but it does not exist in .NET Compact Framework. How would I go about painting a control to an image in a Pocket PC application? ...

C# UserControl Visible Property

Hello, How can I override a UserControl Visible property ? Or how could I determine within a control when it changes its Visible state ? Later edit: I need it to work in .NET CF 3.5. Thanks. ...

.net Compact Framework callstack - how?

The System.Diagnostics namespace (and GetFrame(int frameNumber) in particular) is not available in the CF. How do I go about getting callstack details when running on CE (6.0 R3) ? Thanks! ...

Read typed objects from XML using known XSD

I have the following (as an example) XML file and XSD. <?xml version="1.0" encoding="utf-8" ?> <foo> <DateVal>2010-02-18T01:02:03</DateVal> <TimeVal>PT10H5M3S</TimeVal> </foo> and version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSc...

Problem converting a GMT date to local time using C#?

We have a Windows Mobile application written in C# (compact framework). Regional setting is set to (English) New Zealand. Time zone is set to GMT+12 New Zealand. We store our dates in GMT/UTC format. We have a date 2010-02-18 18:00:00 in UTC This time in New Zealand is 7:00 am. When we call on a datetime object starttime = starttime...

How to put data into clipboard on a Windows Mobile device written in .NET?

I want to put some data in the clipboard using c# and the Compact Framework. I am using a Windows Mobile device. How to put data into clipboard on a Windows Mobile device written in C#? ...

A problem in c# using Threads and ListView.

I have a text filter where in the TextChanged event I launch a listview populate code this way: ThreadPool.QueueUserWorkItem(new WaitCallback(populate)); Then in the populate method I have code like this listView1.BeginUpdate(); listView1.Clear(); // rest of the code listView1.EndUpdate(); but the listView1.BeginUpdate() call giv...

How can I make notification popups on Windows Mobile like this?

These notification popups have a title, a description, and a custom menubar. They open up front-most touched to the menubar. I want all this stuff created for my app. How can I make notification popups on Windows Mobile like this? I am on CF 2.0 and C#. UPDATE1 The linked reference to the use of Notification class does not provide ...

.NET Compact Framework - Displaying Silverlight Websites

Hello, I'm building a Windows Mobile application, based on WM 6.5 Professional SDK. I need to display a website created with Silverlight, but standard WebBrowser Control doesn't seem to support Silverlight. Is there any other way, to display Silverlight websites? Any other controls? Thanks in advance for any help, MattheW ...

How to display quickly additional data on a mobile screen having a single row ListView?

I have a Windows Mobile application written in .NET We use a ListView to show a list of bookings. We show the date and the subject of the booking. That's pretty limited. We would like to show quickly if possible additional data, like who created the booking, the location for the booking. The ListView on Compact Framework doesn't let us ...

How to prevent a form to show up in the constructor?

I have a C# application and I am trying to prevent a form to show up in the constructor. I launch the form like this: Form1 f = new Form1(); f.ShowDialog(); what do I have to do in the Constructor so the f.ShowDialog should not launch and continue code execution. ...

Crossfading - Best way of getting audio C# .NET Compact Framework?

I'm using .NET Compact Framework 3.5 and I'm wanting to crossfade two tracks of music. The time at which they would crossfade isn't known, the idea is one would loop and something would trigger a crossfade. I know SoundPlayer can play multiple tracks on top of one another and that (though I've not been able to get it to work), WaveOut ...

copy file from windows mobile to xp through shared folder in wi-fi network c#

Hi, I have : 1.pc with xp pro (sp3) 2.samsung omnia with windows mobile 6.1 3.wi-fi network in the xp i have shared folder. is there way in csharp programming to copy from/to the shared directory using wi-fi ? the important thing is : -the c# program will run in the device hope im clear. thanks. ...

How can I select a datagrid row using the Compact Framework 3.5, based on data values rather than cell/row index?

Hello StackOverflow; I have a solution running on version 3.5 of the Compact .NET framework, which has many forms on it and datagrids on those forms, utilised to display data from a Sql CE database. I use an implementation of IBindingList as the source of each of these datagrids, so that I can monitor the state of the underlying data a...

Templating engine for .NET Compact Framework

Does anyone know any templating engine that works under .NET Compact Framework 3.5? ...

Detect and prevent/delay windows mobile power off.

I have a window mobile application which needs to detect power off and perform some operation before the device shuts down. I have been able to detect that the device is shutting down using pinvoke to the RequestPowerNotifications win32 api. However I can not figure out how to block the power off for long enough to run my code. ...

DllImport instead of slow Assembly.LoadFrom

I have couple resource DLLs that I currently load when application starts using following code: Assembly ass = Assembly.LoadFrom(fi.FullName); Type t = ass.GetTypes()[0]; string ns = t.Namespace; BaseFacade bf = Activator.CreateInstance(t) as BaseFacade; // bf.GoWild()... When I have that BaseFacade I go wild with function calling t...

How do you print a Sql Report from a Stored Procedure

Using SQL 2008, how do you print a report from a stored procedure? Or alternately, how can you print a Sql Report from .Net Compact Framework (3.5)? ...