Hello Andreas,
How are you doing?
Regarding the issue that you have raised relating to the refreshing or the
pge in IE when the mouse moves back to the browser.
I tried replicating the scenario, and was somewhat successful. If I do
nothing in my drop event and just use e = e.empty in drop event of a text
box.
I can see what you are experiencing. To solve this I replaced the following
code:
e=e.Empty
with
e=nothing
Here is my code snippet for the drop text box:
Private Sub TextBox2_DragEnter(ByVal sender As Object, ByVal e As
System.Windows.Forms.DragEventArgs) Handles TextBox2.DragEnter
If (e.Data.GetDataPresent(DataFormats.Text)) Then
e.Effect = DragDropEffects.Copy
Else
e.Effect = DragDropEffects.None
End If
End Sub
Private Sub TextBox2_DragDrop(ByVal sender As Object, ByVal e As
System.Windows.Forms.DragEventArgs) Handles TextBox2.DragDrop
'TextBox2.Text = e.Data.GetData(DataFormats.Text).ToString
'e = e.Empty 'This recreates the issue
e = nothing 'Solves the issue
End Sub
I hope this helps.
Thanks
Mona
[Grapecity]
> Hi
>
[quoted text clipped - 12 lines]
>
> /Andreas Z
Andreas Zita - 12 Sep 2005 12:54 GMT
Hi Mona and thanks for your suggestion!
Unfortunately however it didn't work for me. Setting e to <nothing>, for me
<null> (c#), didn't change anything I could notice. I also doesn't need to
set e = e.Empty or e = (DragEventArgs)DragEventArgs.Empty (c#) to make the
problem appear.
I have also tried e.Data.SetData(null) without success.
Worth mentioning is also that the second time dragdrop is triggered, the
extracted URL caption is a bit different from the first time.
/Andreas Z
Andreas Zita - 13 Sep 2005 12:07 GMT
Have solved this issue now ... It was a error made by myself ... I had by
misstake attached duplicated databindings to a certain object in the
dragdrop method and this was somehow causing the problem ... I have no idea
how but it apparently did ... really odd ... anyhow .. solved now
/AZ