compact-framework

How can I have design time support for my custom user controls in Visual Studio 2008?

烂漫一生 提交于 2019-11-30 10:50:59
I'm an creating a custom user control for .NET Compact Framework and I want to keep design time support. I'd like to think in Visual Studio 2008 that this is not the crazy almost impossible task it once used to be. And I'm hoping there is a simple tutorial somewhere that will show me, it is a snap. Any chance? There is a sample you can download here that shows how to incorporate a WYSIWYG design-time experience. Also there is annother tutorial here . Look at the section on the "Designer". Hope this helps Creating and Migrating Smart Device Custom Controls by Using Visual Studio 2005 I liked

What's the best way for a .NET winforms application to update itself without using ClickOnce?

一曲冷凌霜 提交于 2019-11-30 10:39:44
问题 For technical reasons, I can't use ClickOnce to auto-update my .NET application and its assemblies. What is the best way to handle auto-updating in .NET? 回答1: I think the Updater Application Block was something of a precursor to ClickOnce. Might be worth investigating. Looking at its source code might be enough to spark some ideas. 回答2: We have a product that's commercial/open source: wyBuild & wyUpdate. It has patching ability and is dead simple to use. Edit: I'm getting voted down into the

NetCFSvcUtil “Error: An error occurred in the tool.”

为君一笑 提交于 2019-11-30 09:34:15
I am trying to generate a WCF proxy client code for a Windows mobile application that uses basicHttpBinding and I'm continuously receiving the follow error: Error: An error occurred in the tool. Error: Error in the application I was able to generate the proxy before but I don't know why suddenly this happens. I have read the Sameh Samir's post but the service I use doesn't use any Message Contracts created by me (I've used LINQ to SQL ORD) and the WCFTestClient can connect to the service and shows the contracts. UPDATE It seems the problem was with the Windows 7 RC1. I was trying it on Win7

ZXing.Net Encode string to QR Code in CF

眉间皱痕 提交于 2019-11-30 08:52:32
How could I encode my string into a QR Code using ZXing.Net ? I can already decode, but having problems in encoding. It has an error that says: no encoder available for format AZTEC . Here is my code: IBarcodeWriter writer = new BarcodeWriter(); Bitmap barcodeBitmap; var result = writer.Encode("Hello").ToBitmap(); barcodeBitmap = new Bitmap(result); pictureBox1.Image = barcodeBitmap; Michael You doesn't fully initialize the BarcodeWriter. You have to set the barcode format. Try the following code snippet: IBarcodeWriter writer = new BarcodeWriter { Format = BarcodeFormat.QR_CODE }; var result

Know who got the focus in a Lost Focus event

末鹿安然 提交于 2019-11-30 08:25:10
问题 Is it possible to know who got the focus in a lost focus event? Compact Framework does not have an ActiveControl , so I don't know how to tell who got the focus. 回答1: This is the solution that ended up working: public System.Windows.Forms.Control FindFocusedControl() { return FindFocusedControl(this); } public static System.Windows.Forms.Control FindFocusedControl(System.Windows.Forms.Control container) { foreach (System.Windows.Forms.Control childControl in container.Controls) { if

System.Text.Encoding.GetEncoding(“iso-8859-1”) throws PlatformNotSupportedException?

狂风中的少年 提交于 2019-11-30 07:11:59
问题 See subject, note that this question only applies to the .NET compact framework. This happens on the emulators that ship with Windows Mobile 6 Professional SDK as well as on my English HTC Touch Pro (all .NET CF 3.5). iso-8859-1 stands for Western European (ISO), which is probably the most important encoding besides us-ascii (at least when one goes by the number of usenet posts). I'm having a hard time to understand why this encoding is not supported, while the following ones are supported

Boolean and Math Expression Parser

筅森魡賤 提交于 2019-11-30 06:38:24
问题 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 = "(1 == 1) && (1 > 0)"; Parser parser = new Parser(); boolean result = parser.parse(expression); // Result should be True. In addition to handling boolean expressions I

Store an image in a SQL Server CE database

两盒软妹~` 提交于 2019-11-30 05:44:28
问题 Does any one know of an example on how to store an image in a SQL Server CE database? What data type should the column be? (I am guessing binary.) I use Linq-To-Datasets. Is it possible using that to put the image into the database and pull it out again later? Thanks for any advice. Here is how I did it: MemoryStream stream = new MemoryStream(); myBitmapImage.Save(stream, ImageFormat.Png); myInsertLinqToDataSetRow.IMAGE_COLUMN = stream.ToArray(); To load it back out again I did this:

Playing YouTube videos in a Windows Mobile application

ぃ、小莉子 提交于 2019-11-30 05:32:50
I am working on an application for Windows Mobile 6 (or maybe 5) that plays YouTube videos. Well, it should play YouTube videos (and control/query the player about status changes, current frame/time, etc.) After scouring the web for quite some time now (and a few trials), I still couldn't find a way to do this. The options I know of are: Use the YouTube player, embedded in HTML, controllable via JavaScript. However, I couldn't watch YT videos from IE Mobile, to begin with -- I get an error message saying something along the lines of "you need a browser with Flash Player 8 and JavaScript

3rd Party UI components for .net Compact Framework? [closed]

血红的双手。 提交于 2019-11-30 04:25:30
I have a .Net compact framework application with a frankly unimpressive UI. My win32 app uses Dev Express components and looks great, but I can't find anything similar for the compact framework. Can anyone recommend components that will jazz up my UI? Does such a thing exist, oram I going to have to owner draw my components or even worse use native code? A number of vendors provide controls for the Windows Mobile environment. Component One Mobile Pocket PC Controls Resco Mobile Forms Toolkit OpenNETCF is a large collection of classes, components and controls for the compact framework. I'm not