Results 1 to 2 of 2

Thread: Pasting lotus notes document link in VB RichTextBox control

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    1

    Question Pasting lotus notes document link in VB RichTextBox control

    Hi all,

    I am currently working in lotus notes with help of VB. I am new for lotus notes. I have copied the document link from lotus notes template and I have tried to paste the link in RichTextBox. But it fails. The lotus notes logo only presents in the RichTextBox .

    Simply to say is that, I need the copied document link (eg format: notes:///set of numbers/set of numbers/set of numbers; eg link:notes:///65257566003C2844/E7A291052E43215E852567240071E2AD/0FBD41AB85E21B7A6525756B004129CC) in the RichTextBox


    Thanks in advance
    Baalu Aanand

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Pasting lotus notes document link in VB RichTextBox control

    this code is for drag n drop in a std textbox, but assume it would work similarly in a richtextbox paste, to determine if the clipboard content is a file or text

    vb Code:
    1. Private Sub Text1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
    2. If Data.GetFormat(1) Then    ' text
    3.     Text1 = Data.GetData(1)
    4.     ElseIf Data.GetFormat(vbCFFiles) Then
    5.         openfile Data.Files(1)
    6. End If
    7.  
    8. End Sub
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width