Connecting Tech Pros Worldwide Forums | Help | Site Map

Drag Drop problem

kevininstructor@state.or.us
Guest
 
Posts: n/a
#1: Nov 22 '05
I have the following code

Private Sub Form1_DragEnter(ByVal sender As Object, ByVal e As
System.Windows.Forms.DragEventArgs) Handles MyBase.DragEnter
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
e.Effect = DragDropEffects.Copy
End If
End Sub

If I drag from Explorer "My Documents" as shown below
C:\Documents and Settings\gallaghe\My Documents
All works fine. If I instead drag the same folder but labeled as "My
Documents", this time as a virtual folder the code above refuses to accept
the folder.


Any thoughts why? Can this be overcome?

Thanks for any assistance you can help me with!!!
Kevin
DotNet 1.1 on Windows XP



kevininstructor@state.or.us
Guest
 
Posts: n/a
#2: Nov 22 '05

re: Drag Drop problem


I am cross posting to languages.vb because this was the original location
but somehow did this formum by accident. I apologize for cross-posting when
I know this is not proper etiquette.

"kevininstructor@state.or.us" <Kevin.S.Gallagher@state.or.us> wrote in
message news:eTHjzLmKFHA.1176@TK2MSFTNGP12.phx.gbl...[color=blue]
> I have the following code
>
> Private Sub Form1_DragEnter(ByVal sender As Object, ByVal e As
> System.Windows.Forms.DragEventArgs) Handles MyBase.DragEnter
> If e.Data.GetDataPresent(DataFormats.FileDrop) Then
> e.Effect = DragDropEffects.Copy
> End If
> End Sub
>
> If I drag from Explorer "My Documents" as shown below
> C:\Documents and Settings\gallaghe\My Documents
> All works fine. If I instead drag the same folder but labeled as "My
> Documents", this time as a virtual folder the code above refuses to accept
> the folder.
>
>
> Any thoughts why? Can this be overcome?
>
> Thanks for any assistance you can help me with!!!
> Kevin
> DotNet 1.1 on Windows XP
>
>[/color]


Closed Thread