windows-ce

Why does everything print on the same line, even though I'm adding crlfs?

馋奶兔 提交于 2019-12-11 06:24:04
问题 This will print (although still ugly) on the Zebra QL220 belt printer from my CE/CF app running on a Motorola MC3100 handheld: public void PrintBarcode(string barcode, string UPC, string description, decimal listPrice) { using (SerialPort serialPort = new SerialPort()) { serialPort.BaudRate = 19200; serialPort.Handshake = Handshake.XOnXOff; serialPort.DataBits = 8; serialPort.Parity = Parity.None; serialPort.StopBits = StopBits.One; // other choice is Two (see p. 14-21 in CPCL pdf) serialPort

Calling C# DLL from ASP on Compact Framework (Windows CE)

空扰寡人 提交于 2019-12-11 05:49:11
问题 I am writing an ASP application on Windows CE that will need to call business logic that exists in a .NET DLL (C#). It appears as though although the Compact Framework allows us to call native code from managed code, the CF doesn't allow us to call managed code from native code. - But, I'm not 100% sure on this. Has anyone had success using COM Interop to call methods from a managed dll from ASP on CF? If so, can you point me to where I can learn how to do it? If not, given that I must use

Set tab control style on managed TabControl

爷,独闯天下 提交于 2019-12-11 05:41:17
问题 Is it possible to set a tab control style like TSC_BUTTONS on a managed TabControl? Windows CE 6 / .NET CF 3.5 回答1: With the caveat that I'm not specifically done this style change (though I've done plenty of others), according to the docs TCS_BUTTONS is a supported style. Since the managed TabControl is simply a wrapper around the native one, you should be able to P/Invoke SetWindowLong with GWL_STYLE and adjust this (probably in the constructor of a TabControl-derived custom control). 回答2:

Right to Left Layout Property in Below Code

纵饮孤独 提交于 2019-12-11 05:39:00
问题 I am creating my own custom progress bar control for windows CE .Net 2.0 C# Application. Below is the code which works fine the only thing missing is I want to show progress Right to left can anyone help me in modifying this code to get RTL property Code Refering using System; using System.Drawing; using System.Windows.Forms; class CustomProgressBar:UserControl { int min = 0; // Minimum value for progress range int max = 100; // Maximum value for progress range int val = 0; // Current

How can I determine what version SQL Server Compact a table is?

微笑、不失礼 提交于 2019-12-11 05:36:15
问题 I have some .SDF tables that are created in a Windows CE app (access table data is passed from a server app, and this is converted into SQL Server Compact records/tables). I want to look inside them from my desktop machine in Visual Studio 2010. But attempting to create a new Data Connection in the Server Explorer, selecting either of the two "Microsoft SQL Server Compact" Data sources (3.5 and 4.0) fails. When I choose 3.5 and then "Test Connection," it tells me: This is not a valid SQL

Create a full screen application

只愿长相守 提交于 2019-12-11 05:29:51
问题 We want our application to run in full screen mode with no title bar on a Win CE 5.0 powered device. The application is being developed using .NET Compact Framework 3.5 (C#). I have followed this tutorial, but I encountered an error. Here is my code: namespace DatalogicDeviceControl { public partial class Form1 : Form { public const int SWP_ASYNCWINDOWPOS = 0x4000; public const int SWP_DEFERERASE = 0x2000; public const int SWP_DRAWFRAME = 0x0020; public const int SWP_FRAMECHANGED = 0x0020;

Tweak timeout period for socket connections on Windows CE

孤者浪人 提交于 2019-12-11 04:54:45
问题 I'm testing how our software handles connection failures. We use socket.BeginConnect with a callback function set. The endpoint IP address and/or port number is deliberately invalid. The callback function gets called after ~21s every time (with timeout and connection failure, of course). I'd like to be able to tweak the timeout up or down for testing or final deployment. According to this MSDN article for Windows CE 5.0, the key HKLM\Comm\Tcpip\Parms\TcpInitialRTT looks helpful. But I've

Accesing WinCE ComboBox DroppedDown property (.NET CF 2.0)

£可爱£侵袭症+ 提交于 2019-12-11 04:37:09
问题 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 System.Text; using System.Windows.Forms; namespace xCustomControls { public partial class xComboBox : System.Windows.Forms.ComboBox { private ComboBox comboBox1; public

SQL CE OutOfMemoryException consuming web service

对着背影说爱祢 提交于 2019-12-11 04:14:53
问题 We are continually receiving OutOfMemory exceptions when trying to download documents via a web service. We are storing the documents byte array data as part of a serialized mesage object and the original documents are all ~500kb in size. The only other thing in the message's object graph are two string properties for correlation. We have tried retrieving the document compressed and uncompressed with the same issues. Now I believe that the exception is been raised when trying to deserialize

How to integrate the scan barcode option on my WinCE application?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 04:09:12
问题 I'm new to the CE environment, I'm creating an application for a mobile computer with a barcode scanne that uses Windows CE 5.0 (Motorola mc3000). I'm using VS 2008 and I'm programming with C#. I made a litte demo project that it runs successfully on the device. My application have a scan task so it need to use the Barcode reader: Access to the scan hardware, make it run, read the returned result and display it into a textBox! The problem is that I don't know how to integrate the scan part