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

#C#

85 posts

85 total · page 5 / 9

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 →

Rotating an Image by 90 Degrees in C#

Here I will provide a function to rotate an image by 90 degrees, but not to display a pictureBox at a certain angle, but rather to transform the image so that the input is one image and the output is an absolutely different, but identical to the first, image - rotated by 90 degrees.

129 views 0 comments 0 likes ./Read →

Examples of Changing Word Documents from C#

Recently, I've had to work with Word documents from C# quite often. I'd say it's a decent mechanism for generating simple reports. It's quite convenient - since Word is often installed on most user computers, there's no need to install additional components, such as Crystal Reports (they're good, but when you need something very simple, it's better without them).

97 views 0 comments 0 likes ./Read →