A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[C#] Clipboard snippet

1.1k views · started by Bman ·
#1
[C#] Clipboard snippet
            if (Clipboard.ContainsText() == true)
{
if (Clipboard.GetText() != LastClip)
{
ClipTxt.Text = ClipTxt.Text + "\r\n" + Clipboard.GetText() + "\r\n";
LastClip = Clipboard.GetText();
}
}


Old code is old. Just thought I would share it since im working on more things.
#2
You don't need the == true for the Clipboard.ContainsText().
#3
I've realized that since this was posted on another forum long ago. The code is quite old.