farshad Posted November 10, 2003 Posted November 10, 2003 Hi, Can u convert this VBA code to vb.net please? Thanks Dim clipboard As DataObject clipboard = New DataObject clipboard.SetText doc.responsetext clipboard.PutInClipBoard 'And here I would like to see what is on the clipboard... Quote Farshad
Administrators PlausiblyDamp Posted November 10, 2003 Administrators Posted November 10, 2003 (edited) Following may give you a pointer or two 'To retrieve text from clipboard Dim dobj As DataObject dobj = Clipboard.GetDataObject() Dim formats() As String = dobj.GetFormats(True) 'will get a list of supported formats 'if Text is supported then Dim s As String s = dobj.GetData("Text") 'To put text on clipboard dobj.SetData("Text", s) Edited March 15, 2007 by PlausiblyDamp Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.