- Download Visual c# from msdn.microsoft.com/vstudio/express/visualcsharp
- Create new project as a windows application
- Delete the generated form (form1.cs)
- Open program.cs
- Change the content of the main method to:
IDataObject data = Clipboard.GetDataObject(); if (data != null && data.GetDataPresent(DataFormats.Text)) { String clipboardText = data.GetData(DataFormats.Text).ToString(); Clipboard.SetText(clipboardText); } - Compile and build the program (F6)
- Save the project
- Open thin bin/Release directory of the project
- Create a shortcut to the exefile and copy it. Paste it on the desktop
- Add a shortcut key, e.g. Ctrl-Shift-C under properties
- Copy some formatted text and try the new shortcut
- Paste the text in a rich text editor to see the result
-
Recent Posts
Recent Comments
Tags
Categories
Archives
- March 2011
- January 2011
- December 2010
- October 2010
- September 2010
- June 2010
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- March 2008
- December 2007
- November 2007
- July 2007
- May 2007
- January 2007
- October 2006
- September 2006
- June 2006
- March 2006
- February 2006
- December 2005
- November 2005
- September 2005
- August 2005
- July 2005
- May 2005
- April 2005
- March 2005