Drag and Drop not working in windows 8.1

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
12 posts Page 1 of 2
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Hello,

can someone help me
it seems that the drag and drop wont work with windows 8.1
does anyone has the same problem before
so yes? how did you fix it

thanks
Code: Select all
#Region " Drag and Drop "
   
    Private Sub FlowLayoutPanel1_DragDrop(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragDrop
        Dim Files() As String
        If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
            Try
                Files = e.Data.GetData(DataFormats.FileDrop)                                
            Catch ex As Exception
               Exit Sub
            End Try
        End If
    End Sub

    Private Sub FlowLayoutPanel1_DragEnter(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragEnter
        Try

            If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
                e.Effect = DragDropEffects.Copy
            Else
                e.Effect = DragDropEffects.None
            End If
        Catch ex As Exception
           
            Exit Sub
        End Try
    End Sub


#End Region
thank you
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

I tested this in Win8.1 and it seems to run the code.
Did you set the AllowDrop property to true?
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

hello #mandai

yes because i used this app in win 7 before i had win 8 :)
weird why does it not working for me?
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

so i guess no one has an idea?
so sad :(
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

Are you fully up-to-date with your .NET libraries and VS installation?

Also create a new project and try your code within it, it could be a build issue related to your project from Win7 :?
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

hello #CodenStuff
we already tried that
but seems the weird part is when i debug the project
i can drop any file
but when i execute the project i can't drop anything :?
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

its seems when we build the app in release folder
we can drop files
not in debug folder.

but when we run the app as admin we can't drop files anymore :?
anyone a solution why?
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

I honestly have no idea, Dummy1912.

It could be UAC related, I found a few similar posts from people having the same problem on some other sites.

http://weblogs.asp.net/jeffwids/windows ... g-and-drop
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

hello #CodenStuff

well it even seems i can't open the UAC anymore
i even tried to run gpedit.msc but even that is missing

weird windows 8.1 it worked before i only turned that UAC off the first time of run
now i need to find a way to fix it again grrrrrrr
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

So after resetting and reinstalling windows 8.1 again
we have the UAC back but still same problem can't drop files when running as admin.

so now we are waiting on msdn technical support what to do
and lets hope
but i don't think it will do anything with UAC because if so
then all users have to turn this option off
:?

and we already tried that to set UAC off but didn't work either and when we wanted to turn it back to default we could restore the UAC again so weird windows 8.1
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
12 posts Page 1 of 2
Return to “Coding Help & Support”