473,769 Members | 6,286 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1951
" **Developer**" <RE************ *@a-znet.com> wrote in message
news:u8******** ******@TK2MSFTN GP10.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
ControlRichText Box1.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******** ******@TK2MSFTN GP10.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
3662
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 message when I press CTRL+V. (Don't tell me to capture the key press event)
1
7448
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. Means, I want to embed file in Richtextbox. If the user click / doubleclick / Ctrl+click the link, that file should open. It is like hyperlink in HTML.
4
21626
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 via the file menu events using the clipboard. However, what I don't get is how is the program able to produce a context menu in the textbox area. When right clicking, the context pops up and allows to cut/copy/paste/delete, etc.. But the thing is, I...
3
3136
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 don't know how to include them. Can you help?
5
14041
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 possible what is my alternative Thanks so much in advance A
2
1724
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 that would place them into an array. I don't want the user to put them in one at a time.. Thanks..
1
1545
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. Are links only for opening files into their app? I also wonder why the effect All includes Scroll, Copy, and Move but does not include Link?
0
1325
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 visible. I can view only last two lines and the cursor blink at the last character of the pated content. once move the cursor by up arrow key the text will scroll upto and can visible. I made the RichTextBox to fit with number of line that is it will...
0
976
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 System.Windows.Forms.RichTextBox.StreamIn(Stream data, Int32 flags) at System.Windows.Forms.RichTextBox.StreamIn(String str, Int32 flags) at System.Windows.Forms.RichTextBox.set_SelectedRtf(String value) I write a menu for the user to paste...
0
9587
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10211
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9993
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.