Click here to Skip to main content
15,885,309 members
Articles / Desktop Programming / Windows Forms

Set and Get Text in the Clipboard

Rate me:
Please Sign up or sign in to vote.
4.18/5 (6 votes)
5 Oct 2009CPOL1 min read 61.4K   932   22  
How to set and get text in the Clipboard using C#.

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C# Express 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Clipboard", "Clipboard\Clipboard.csproj", "{B34CAFEB-BC5D-491E-B255-5965946F57D3}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{B34CAFEB-BC5D-491E-B255-5965946F57D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{B34CAFEB-BC5D-491E-B255-5965946F57D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{B34CAFEB-BC5D-491E-B255-5965946F57D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{B34CAFEB-BC5D-491E-B255-5965946F57D3}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Brazil Brazil
I develop for mobiles since 2005, using J2ME for those old color mobile phones(like the good Nokia ones), after this at 2006 I've started on WIndows Mobile development using VB and some C#, at 2007 I was totally focused on Windows Mobile development, developing things like Calendars, simple games and a fully-featured text editor. Aug 2008 I moved to Symbian S60 3rd development using Python and C++. After that I've started on the platform that I like most: Android. One week ago I bought my first Mac, so I was going to start on iOS development, but I saw that it's so much difficult(Objective-C is the problem)

Comments and Discussions