One peculiarity of data collection terminals Cipher with Windows CE is that, unlike other TSDs (at least Motorola(Symbol) and Datalogic), standard methods of obtaining a serial number will not work. To get it, you can, but it will be the same for all devices, which personally does not suit me.
Recently encountered a problem where FormWindowState.Maximized did not work everywhere. For example, it stopped working on one of my devices with Windows CE 6.0, and no amount of dancing helped. I spent a long time searching the internet, but found nothing in Russian. I eventually found a guide on an English-language website.
It was long overdue for such a component, and finally, we managed to do it. The first version is ready. This component is a ListView for mobile devices based on Windows Mobile, where you can set the number of rows in position (up to 10 rows). It is primarily intended for modern devices with large screens and powerful hardware, but it will also work on devices with a 240X320 screen resolution, with a smaller width but twice the number of rows (for EGA - only even number of rows are possible, e.g. 5 rows will give 10 rows, 1 row will give 2 rows; 1.3 or 5 rows are not possible). A random image is used as the background. <br><br>Component screenshots: <br><a href="[[B0]]" class="highslide"><img src="[[B1]]" class="image-shadows image-padded" alt=""></a> <a href="[[B2]]" class="highslide"><img src="[[B3]]" class="image-shadows image-padded" alt=""></a> <a href="[[B4]]" class="highslide"><img src="[[B5]]" class="image-shadows image-padded" alt=""></a> <br><br><br><br><br><br><br><br><br><br><br>Download the component: <br>[attachment=19:graphlistview.rar] <br><br>To use the component, unpack the archive, create a new SmartDeviceProject in VisualStudio, right-click on the panel (Toolbox), select Choose Toolbox Items (wait for it to load, sometimes it freezes). In the opened window, click Browse, and find our component GraphListView.dll - find it, select, and add. <br>After that, the component should appear on the panel and can be used. <br><br>Description of the component, example of work, and source code <a href="[[B6]]">Here</a>. <br><br>P.S. Suggestions for the component's development, as well as found errors and inaccuracies are welcome.
I needed to automatically determine which version of Win CE is installed on a device, and I was surprised by the end result, but I'll get to that later. First, I'll describe the method for obtaining platform information… We'll get the information using the API function SystemParametersInfo, nothing special, I'll skip to the example right away.
Here I will provide an example code for drawing using GDI+ for Windows Mobile. A good man, Alex Feinman, presented a great library OpenNETCF.GDIPlus for drawing very beautiful lines using various brushes and fills. The library is available with source code and allows doing amazing things, the most useful (in my opinion) of which are the ability to draw transparent objects (Transparent) and edge smoothing, which makes lines significantly more attractive.
Довольно долго я всевозможными способами пробовал вывести изображения с прозрачным фоном (например картинку формата png) в .NET CF на Windows Mobile устройствах. Но всё получалось либо медленно и некрасиво, либо очень сложно. А нужен был ме…
Many developers have encountered this issue when their application works perfectly until the device goes into sleep mode. Or when you need to keep the screen on for a long time without touching the screen (e.g., when you're creating your own navigation system).
Example function that changes the size of an image on a Windows Mobile platform. Example: //Changing image sizes public static Image Resize(Image image, Size size) { Image bmp = new Bitmap(size.Width, size.Height); using (…
Recently, I was thinking about a small task - to use the camera in my application and get photos from it. As it turned out, it's quite simple to do. To do this, you just need to add the Microsoft.WindowsMobile.Forms library to your project.
Here I will provide an example of creating the simplest application for a PDA on the .net cf platform. I would like to note one point, that in your development you can certainly use emulators, but I do not recommend it. Many tasks that need to be solved are impossible to solve using emulators, so if you want to develop something more or less serious, it is worth acquiring a mobile device. Fortunately, the cheapest can be bought almost for pennies. There is no need to buy a new, modern, and over-featured device, an old, worn-out device bought from hand for pennies will be enough.<br><br>So, let's get started.<br>For developing applications, we will use Visual Studio - you can choose from 2003 to the latest, it's better to choose the newer one, the differences between versions are not significant (at least in the case of the example being considered). <br>There is another point. In 2005 and later versions of Visual Studio, .NET CF is used - at least version 2. From which it follows that your applications will not work on all that does not support at least the second framework. Such devices are extremely rare (personally, I only met industrial terminals on Windows CE 4.2) - but if this is your case, then here there is no choice but Visual Studio 2003, although it is better to update the equipment, in my opinion.<br><br>So - we start Visual Studio and create a new project. We will develop the application in C#. To create a new application, we choose the Smart Device tab, specify the project name and framework version. In the latest version, 2008 Visual Studio, you can choose 2, 3, and 3.5 frameworks.<br><a href="[[B1]]" class="highslide"><img src="[[B2]]" alt=""></a> <br>Next, we choose the device type. In our case, it's not very important - we'll choose PocketPC 2003<br><a href="[[B3]]" class="highslide"><img src="[[B4]]" alt=""></a> <br>A window will appear with a form to which we add a Button (Button1) and a Label - text (Label1) we get this:<br><a href="[[B5]]" class="highslide"><img src="[[B6]]" alt=""></a> <br>Now, we create an event handler for the button's OnClick event. When the button is clicked, we will change the text in Label1 to Hello World!.<br><br>That's it - we run our project in the emulator.<br>We click the button and admire the result.<br>If you have a device for experiments, you need to install .NET CF 3.5 on the device in advance - only then copy the files from the Debug project folder and run them.