error ole drag and drop in textbox

The place for threads about TimoSoft EditControls.
Post Reply
supersecretos
Cadet
Posts: 3
Joined: 24 Mar 2012, 01:19

error ole drag and drop in textbox

Post by supersecretos »

error ole drag and drop in textbox.

codigo of button:

Private Sub TextBox1_OLEDragDrop(ByVal data As EditCtlsLibUCtl.IOLEDataObject, effect As EditCtlsLibUCtl.OLEDropEffectConstants, ByVal button As Integer, ByVal shift As Integer, ByVal x As Single, ByVal y As Single)
If data.GetFormat(1) Then
TextBox1.Text = data.GetData(1, -1, 1)
ElseIf data.GetFormat(15) Then
End If
End Sub

please help

string of test:

[HD 1080p] SNSD 少女時代 소녀시대

see video attach for details

Test error over windows xp pro with service pack 3.

.
Attachments
error edit control.zip
video error (uncompress)
(568.36 KiB) Downloaded 387 times
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: error ole drag and drop in textbox

Post by TiKu »

Hi,

you're using format 1, which is vbCFText which is ANSI text. Try format 13, which is Unicode text.

Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
supersecretos
Cadet
Posts: 3
Joined: 24 Mar 2012, 01:19

help data.Files.Item (1)

Post by supersecretos »

Thank you very much for the help.

another little thing, could you give me a link or website where this explained these values, because the help of control (chm) not detailed stuff, such as:

the values ​​for "FormatID" in method "data.GetData".

Other help. Now as I get the files. Previously "control non-unicode" used "data.Files.Item (1)" in the event oledraganddrop, but now with unicode controls it generates error.

Thanks in advance.
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: error ole drag and drop in textbox

Post by TiKu »

You won't find a list of all possible formats. There are some standard formats like those defined by VB (vbCF* constants) and the Windows SDK (CF_* constants). I believe the CF_* constants are documented somewhere on MSDN. Additionally any format, that has been registered by a call to RegisterClipboardFormat API, can be used.
Of course not all formats are available in each situation.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
supersecretos
Cadet
Posts: 3
Joined: 24 Mar 2012, 01:19

Re: error ole drag and drop in textbox

Post by supersecretos »

Ok.

Thank you very much for the help.
Post Reply