⌘BABAKOV.NET Let's code!
100% [light] [ru]
~/programming $

Development

102 total · page 6 / 11
Subsections

Determining the Platform in .NET CF on a Mobile Device C#

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.

28 views 0 comments 0 likes ./Read →

Drawing Beautiful Lines in Windows Mobile on C#

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.

14 views 0 comments 0 likes ./Read →

Рисуем изображение с прозрачным фоном и заставляем его перемещаться в NET CF. C#

Довольно долго я всевозможными способами пробовал вывести изображения с прозрачным фоном (например картинку формата png) в .NET CF на Windows Mobile устройствах. Но всё получалось либо медленно и некрасиво, либо очень сложно. А нужен был ме…

44 views 0 comments 0 likes ./Read →

Working with FTP Server from C#

Many have probably encountered the need to create a simple FTP client for their needs in C#. I was no exception. Recently, I had to create a specific application for updating software via FTP. And the most useful thing I found for this purpose was the BytesRoad.NetSuit library (with source code). This is a very simple component that provides the main functionality for working with FTP.

455 views 0 comments 0 likes ./Read →

Changing Screen Orientation in .NET CF and Running PUTTY. C#

Encountered a big need to run Putty (ssh client) on my HD2. And everything is fine, downloaded, launched, everything works well but the screen width is not enough in vertical position and some information is not visible. For example, when executing the command <b>ps -ax</b>, the lines were simply cut off (did not fit on the screen, the lower scrollbar was missing, and it was impossible to view the information). I've been searching the internet - nothing really worked to rotate the screen for this application. As a result, I decided to quickly write my own program.<br><br>So, the program's main purpose is to rotate the screen, launch Putty, wait for Putty to complete, and return the screen to its normal position.<br><br>The code can be easily adapted to change the orientation in other programs.<br><br>So, the program itself:

35 views 0 comments 0 likes ./Read →

Creating Zip Archives in C#

The easiest way to create archives in C# is to use the special library 'DotNetZip'. The library has a very large functionality and allows you to do real wonders, but at the same time it is very simple to use when you need to quickly pack or unpack something small. Moreover, the package even includes a library for the Compact Framework.

40 views 0 comments 0 likes ./Read →

Database Class (Example: MySQL) in C#

Everything below is written as an example, learn to use Dapper better. Below, in a separate class, methods are implemented not only to execute queries of the type (Scalar and NonQuery) but also a method that returns a set of data in DataTable. The handling of exceptional situations is also considered.

228 views 0 comments 0 likes ./Read →