Tag Archives: clipboard

Copy an irregular area from a picture to the clipboard in C#

Somtimes it’s useful to copy an irregular area from a picture to the clipboard. Before explaining how to do that, let me say right away that MS Paint doesn’t understand transparency. Instead, when you paste an image into MS Paint, … Continue reading

Posted in graphics, image processing | Tagged , , , , , , , , , , , , | 6 Comments

Copy, cut, and paste parts of an image to the clipboard in C#

The first step in copying, cutting, or pasting an image to the clipboard is to use a rubber band box to select the part of the image to manipulate. This example lets you use a rubber band box to select … Continue reading

Posted in clipboard, graphics, image processing | Tagged , , , , , , , , , , , , , , | 9 Comments

Copy and paste text to and from the clipboard C#

Using the clipboard to copy and paste text is simple. Use the Clipboard object’s SetText method to copy text to the clipboard as in the following code. // Copy text to the clipboard. private void btnCopy_Click(object sender, EventArgs e) { … Continue reading

Posted in clipboard | Tagged , , , , , , , , , , , | 3 Comments

Make a password manager in C#

Before I discuss this example, let me make a disclaimer and say that I can’t guarantee this application’s performance. I think it is secure but for something as important as passwords you need to merely use this program as an … Continue reading

Posted in algorithms, cryptography, mathematics, registry, system | Tagged , , , , , , , , , , , , , , , , , , , | 4 Comments

Use cryptographic methods to generate random passwords in C#

Lately I’ve gotten more than a little tired of having to generate random passwords that obey all sorts of stupid rules for various web sites. Who cares if I use a strong password on a web site that just sends … Continue reading

Posted in algorithms, cryptography, mathematics, system | Tagged , , , , , , , , , , , , , , , , , , | 1 Comment