Paste Link or Data into a RichTextBox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • **Developer**

    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.


  • Phill.  W

    #2
    Re: Paste Link or Data into a RichTextBox

    " **Developer**" <REMOVEdevelope r@a-znet.com> wrote in message
    news:u8kIvxvhFH A.1052@TK2MSFTN GP10.phx.gbl...[color=blue]
    > 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.[/color]

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

    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


    Regards,
    Phill W.


    Comment

    • **Developer**

      #3
      Re: Paste Link or Data into a RichTextBox

      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:db2vj7$5iu $1@yarrow.open. ac.uk...[color=blue]
      >" **Developer**" <REMOVEdevelope r@a-znet.com> wrote in message
      > news:u8kIvxvhFH A.1052@TK2MSFTN GP10.phx.gbl...[color=green]
      >> 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.[/color]
      >
      > "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.
      >
      >[/color]


      Comment

      Working...