|
-
Feb 23rd, 2014, 07:38 AM
#10
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by Schmidt
Unfortunately the VB.Clipboard does not support this Format-Constant (only the ANSI-Constant CF_Text = 1 is supported).
So, to place and retrieve VBs internal W-Strings directly on and from the clipboard, you will need (in the same way as with unicode-capable Controls) a Clipboard-Class which supports Unicode (there's stuff in the CodeBank or also on PSC for that, but vbRichClient also has a cUniClipBoard-Class).
I think there is no problem with VBs Clipboard function. Just pass CF_UNICODETEXT into Clipboard.GetFormat()/GetData(). It will return a byte array (Unicode) which can be casted to a string.
Edit: Scratch this... this works only with the OLE DataObject in UserControls.
So it is necessary to use the Clipboard APIs in this case.
Last edited by Krool; Feb 23rd, 2014 at 07:50 AM.
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
|