New Sample: Implementing a 'paste Special' Dialog Box
Copy and paste is probably one of the most common techniques to create letters, emails or other documents. Users are pasting pre-defined boilerplates, text passages from emails or content from several websites. The Windows clipboard is able to store the content in several formats. If you copy a text from MS Word into the clipboard, it contains the formatted text as Rich Text Format (RTF), as plain text and Unicode text. Sometimes, it is required to paste the content with it's original…

Copy and paste is probably one of the most common techniques to create letters, emails or other documents. Users are pasting pre-defined boilerplates, text passages from emails or content from several websites.
The Windows clipboard is able to store the content in several formats. If you copy a text from MS Word into the clipboard, it contains the formatted text as Rich Text Format (RTF), as plain text and Unicode text. Sometimes, it is required to paste the content with it's original formatting or just using plain text to apply your own formatting more easily.
This sample shows how to build a 'paste special' dialog that allows the user to choose the format that should be used to insert the clipboard text into TX Text Control.
Read more about this sample in our source code library:
Implementing a 'paste special' functionality for textual clipboard content
Related Posts
Resize Images to Fit into Page
I just got the requirement that pasted screenshots should be resized to fit into the current page. The best and easiest way to realize that is to trap the ImageCreated event. This event returns…
Create a Table of Contents in Windows Forms using C#
This article explains how to create a table of contents in Windows Forms using the ribbon or programmatically. Creating a table of contents is required to organize large documents.
Two Ways to Restart Numbered Lists in TX Text Control
In TX Text Control, numbered lists are continued by default and need to be reset when required. There is more than one way if you want to restart numbered lists in a document. In this article, two…
TX Text Control Smart-Tags: Connecting the Controls with Ease
In TX Text Control .NET for Windows Forms 15.0, we introduced the Visual Studio Smart-Tags. This tag is a menu-like interface that supply commonly used design-time options like changing the Dock…
Paste Special: The Easy Way to Implement
In an older sample, I showed how to implement a paste special functionality by accessing the clipboard directly using .NET functionality. In version 15.0, we implemented this functionality…