|
-
Feb 28th, 2009, 10:26 AM
#1
Thread Starter
New Member
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
-
Feb 28th, 2009, 04:57 PM
#2
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:
Private Sub Text1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single) If Data.GetFormat(1) Then ' text Text1 = Data.GetData(1) ElseIf Data.GetFormat(vbCFFiles) Then openfile Data.Files(1) End If 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|