473,414 Members | 1,675 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Paste Link or Data into a RichTextBox

I've seen applications that have a Paste Special and if clicked allow either
the Data to be pasted or a Link to be pasted.
I'm using the RichTextBox and I'd like to implement that feature.

Can anyone give me any help/direction?

I know how to make the PasteSpecial menu but do not know how to force the
paste to Link or Data.

What is the default RichTextBox - Link or Data.
PS
I've used the tom interface if that helps.
Nov 21 '05 #1
2 1928
" **Developer**" <RE*************@a-znet.com> wrote in message
news:u8**************@TK2MSFTNGP10.phx.gbl...
I've seen applications that have a Paste Special and if clicked allow
either the Data to be pasted or a Link to be pasted.

I'm using the RichTextBox and I'd like to implement that feature.


"Paste Link" is underpinned by Dynamic Data Exchange (DDE);
in short, this is not supported in Visual Basic.Net.

http://msdn.microsoft.com/library/en...albasicnet.asp

Regards,
Phill W.
Nov 21 '05 #2
But if I open paint, draw something and then do a Copy and then in my app I
do
ControlRichTextBox1.Paste()

I believe I get a Link because if I then click the image in the RichTextBox
it opens Paint.

So based on your statement I'd guess that DDE is not doing it but OLE is
doing something equivalent.

Does that make sense???

Is the term "Link" replaced with something else?

Thanks for the reference to the MS site.

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:db**********@yarrow.open.ac.uk...
" **Developer**" <RE*************@a-znet.com> wrote in message
news:u8**************@TK2MSFTNGP10.phx.gbl...
I've seen applications that have a Paste Special and if clicked allow
either the Data to be pasted or a Link to be pasted.

I'm using the RichTextBox and I'd like to implement that feature.


"Paste Link" is underpinned by Dynamic Data Exchange (DDE);
in short, this is not supported in Visual Basic.Net.

http://msdn.microsoft.com/library/en...albasicnet.asp

Regards,
Phill W.

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: VitoriaTang | last post by:
I want to know how to capture the paste message. I tried to capture the WM_PASTE, but it seems as the richtextbox doedn't send this message. But in fact, I can find the textbox will send paste...
1
by: ksskumar | last post by:
Hi Friends, I am creating a application using C#. In that application I am using RichTextBox (System.Windows.Forms.RichTextBox). My query is how to create a file link in Rich text box. ...
4
by: Legendary Pansy | last post by:
I was checking out the 101 C# Samples, specifically Windows Forms - Use the Clipboard. I took a look at the code for a while, and I understand what the program is doing with the cut, copy, pasting...
3
by: **Developer** | last post by:
I need to paste an RTF non-ANSI string into a RichTextBox. I know how to do that if the string were all ANSI characters. But the text contains Unicode characters that have no ANSI equivalent. I...
5
by: Al | last post by:
Hi All I need to include Link text in my RichTextBox field. Very similar to LinkLabel but in richtextbox. If anyone can provide me with hint or solution I would really appreciated it. If not...
2
by: Microsoft | last post by:
I'm not sure which control to use for this: I would like the user to be able to paste a list of items into a box and then be able to run through them one at a time. Hopefully there is a control...
1
by: Just Me | last post by:
I noticed I could drag a filename from windowsexplorer onto a richtextbox and drop it as a Link and the result is a link on the box that open the file if I click it. Is that the whole story. ...
0
by: Vimalathithan | last post by:
Hi Every one, I have developing the user control with RichTextBox in C# windows application. The problem is when I paste any text inside the RichTextBox at the runtime the pasted lines not in...
0
by: ting ting | last post by:
I am using ASP.net 2003 to write program. I have a RTFtextbox and I want to copy the words from MS WORD and paste it in the RTFtextbox. However, it said : System.ArgumentException: 無效的檔案格式。 at...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.