none
drag and drop not working with windows 8.1 RRS feed

  • General discussion

  • Hello,

    we using windows 8.1 for a few days now

    so we installed visual basic .net 2012 and starting our projects again we used in windows 7

    but now it seems that the drag and drop doesn't work in windows 8.1

    we only gets a forbidden icon when we drag it over the control

    please can someone tell us why windows 8.1 won't work with drag and drop

    we hope this can be fix in anyway because we don't like when our users use our programs

    and tell us that this point wont work in windows 8.1

    our code:

    Private Sub FlowLayoutPanel1_DragDrop(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragDrop
           
            If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
               e.Data.GetData(DataFormats.FileDrop)
                          
            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

    Thank you.

    Dummy

    Monday, August 11, 2014 11:35 AM

All replies

  • Where are you dragging from?

    The code you are showing is OK and works on Windows 8.1 for me (I am dragging from Explorer)

    The only things I can think of that can cause this are:

     --  The data format is not of type "FileDrop" .... Which would result in the forbidden icon

     -- You have not set the property "FlowLayoutPanel1.AllowDrop" to True .... Which also would result in the forbidden icon

    Monday, August 11, 2014 8:19 PM
  • Hello Crazypennie

    thanks for your reply

    indeed we are dragging also from explorer folder

    and we used this application before in windows 7

    and we have this option as allowdrop = true

    and yes the file we want to drop is supported by the drag

    but i don't get it why it don't work :(

    or is it windows 8.1 why i can't work with my own applications i made in vb.net 2012

    other applications in windows 8.1 works  fine when we drop something into the apps

    but not with my own.

    i even tried to make a empty app

    with one panel that contains same drag drop code

    but same result won't let me drop

    i even allow the app into the antivirus but not let me drop it :?

    • Edited by Dummy1912 Monday, August 11, 2014 8:47 PM
    Monday, August 11, 2014 8:36 PM
  • I am not sure about what your code is doing since you only show a partial code, so ...  let do this:

    .

    Open a new project

    1) put a flowcontrolpanel on your form, ...

    2) copy this code to your form and run the application

    3) drag a file from explorer to the control

    Then tell me what happen

    Public Class Form1
    
        Private Sub FlowLayoutPanel1_DragDrop(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragDrop
            If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
                Dim Txt() As String = CType(e.Data.GetData(DataFormats.FileDrop), String())
                FlowLayoutPanel1.Controls.Add(New Label With {.Text = Txt(0), .AutoSize = True})
            End If
        End Sub
    
    
        Private Sub FlowLayoutPanel1_DragEnter(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragEnter
            If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
                e.Effect = DragDropEffects.Copy
            Else
                e.Effect = DragDropEffects.None
            End If
        End Sub
    
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
            FlowLayoutPanel1.BackColor = Color.LightBlue
            FlowLayoutPanel1.AllowDrop = True
        End Sub
    End Class




    • Edited by Crazypennie Tuesday, August 12, 2014 2:08 AM 213564
    Tuesday, August 12, 2014 1:25 AM
  • Is there any difference in the set of user credentials between the 2 operating systems? For example, if you run a .NET app "as administrator", you can't drag/drop from explorer into it because explorer is running in the standard user context and can't cross over into an elevated app domain. This condition should exist in both Win7 and Win8/8.1 though, so that is why I ask if you are seeing the problem on a machine running your app elevated to administrator for some reason.

    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com

    Tuesday, August 12, 2014 3:19 AM
    Moderator
  • Hello Crazypennie,

    well what i gonna tell will sound weird in any option

    when i debug the project i can drop any file into the app :)

    but when i execute the app ' i can't drop anymore '

    Tuesday, August 12, 2014 6:52 AM
  • Hello Kleinma,

    thanks for joining us.

    well i must say it do nothing different when i set the app as admin as default

    or just run it as admin

    it all stays the same even with the sample of crazypennie

    that app was run without admin and can't drop any files into it.

    Tuesday, August 12, 2014 6:54 AM
  • Make a copy of your project using windows explorer (file explorer in W8).

    Then remove the bin and obj folder.

    Now build your project again. 


    Run the exe from the bin/folder and look which one you created (release or debug).

    (Don't mark this reply as answer because it has nothing to do with your question)


    Success
    Cor


    • Edited by Cor Ligthert Tuesday, August 12, 2014 9:44 AM obj is bin but does not change behaviour
    Tuesday, August 12, 2014 9:06 AM
  • Hello Mr. Ligthert,

    sorry but it stays the same didn't work :?

    Tuesday, August 12, 2014 9:24 AM
  • I tried the code from CrazyPenny, no problems at all. 

    Be aware, we help with code, we cannot help with malfunctioning computers.

    Try for that the answer forums

    http://answers.microsoft.com


    Success
    Cor

    Tuesday, August 12, 2014 9:44 AM
  • well now we are still even no point forward

    this is what microsoft.com said:

    This question is outside the scope of this site and needs to be asked either on Technet or MSDN

    so what now?


    • Edited by Dummy1912 Tuesday, August 12, 2014 11:17 AM
    Tuesday, August 12, 2014 11:16 AM
  • Do this:

    Compile the code in debug and in Release and drop the project on skydrive or somewhere I can get it. I have some software that will highlight the difference between the debug and the Release code.

    This way, we will know if the problem comes from the code generated by VS

    (Make sure you do both compile)

    Also what is the framework targeted? (You should never target any version of the framework 1 on Windows8)

    Is your processor AMD or Intel?

    Tuesday, August 12, 2014 11:21 AM
  • hello crazypennie

    its framework 4.5

    and i have processor amd

    Tuesday, August 12, 2014 11:25 AM
  • Yea but you don't show your project on skydrive or somewhere like Luke told.


    Success
    Cor

    Tuesday, August 12, 2014 11:27 AM
  • hello mr. ligthert

    i was making some tests

    it seems when i run the app as admin i can't drop it

    when i run the release without admin i can drop it

    even without admin i can't drop it from the debug folder

    here the project:

    project

    Tuesday, August 12, 2014 11:37 AM
  • That is the code from Luke (Crazypennie) and that I tested already and it does what it should do.

    It is strange that the Answer community tells (in the way you phrases it) to shut up. Can you show that message?

    You can also try the TechNet forums.

    http://social.technet.microsoft.com/Forums/windows/en-US/home?category=w8itpro

    Tell that an MVP has already tested the code from Luke and it runs. Here even 4 times, one while debugging, two as exe from the bin debug folder and one from the bin release folder.


    Success
    Cor

    Tuesday, August 12, 2014 2:01 PM
  • hello,

    well why can't i run it then?

    because like i told before that code works from Crazypennie.

    when we ARE NOT ADMIN

    but i need to be admin for my current project without admin we can't use it

    so i need to know why windows 8.1 don't let me use my OWN app to run as admin to drag and drop

    Message from microsoft in here:

    the message


    • Edited by Dummy1912 Tuesday, August 12, 2014 2:36 PM
    Tuesday, August 12, 2014 2:32 PM
  • Maybe you wrote this once, but in my perception more times that you also could not do it as non admin.

    If I start the exe as Admin, I can also not drop, not even if I drag it from a File Explorer which is started as Admin. However, that is not something I know how to handle.

    Maybe some others know how to drag to a program which is started as Admin however it is reported at Connect as a bug.

    I think you should add to this thread your own problem. And don't forget to vote for it, if you have others who can do that with a different IP do it. That connect team is very focussed on votes, not on problems.

    I did it already for you.

    https://connect.microsoft.com/VisualStudio/feedback/details/537964/drag-and-drop-to-open-file-is-not-working-when-run-as-administrator 


    Thanks
    Cor



    Tuesday, August 12, 2014 3:04 PM
  • There are no error in the code

    we can try this

    -------------------

    Put a FlowLayoutPanel and a listbox on the form

    Copy/Paste the code

    Run and drag a file to the FlowLayoutPanel

    Then post a screen shot of the listbox so I can see what was prompted in the listbox

    Public Class Form1
    
        Private Prompt As Action(Of String) = Sub(S As String) ListBox1.Items.Add(S)
    
    
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
            FlowLayoutPanel1.BackColor = Color.LightBlue
            FlowLayoutPanel1.AllowDrop = True : Prompt("AllowDrop")
            Prompt(" ")
    
            Dim EventKeyField1 = GetType(Control).GetField("EventDragEnter", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Static)
            Dim EventKey1 As Object = EventKeyField1.GetValue(FlowLayoutPanel1)
            Dim EventKeyField2 = GetType(Control).GetField("EventDragDrop", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Static)
            Dim EventKey2 As Object = EventKeyField2.GetValue(FlowLayoutPanel1)
            Dim eventHandlerListField = GetType(System.ComponentModel.Component).GetField("events", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Instance)
            Dim eventHandlerList As System.ComponentModel.EventHandlerList = CType(eventHandlerListField.GetValue(FlowLayoutPanel1), System.ComponentModel.EventHandlerList)
            Prompt("Event DragEnter method:  " & eventHandlerList.Item(EventKey1).Method.Name)
            Prompt("Event DragDrop method:  " & eventHandlerList.Item(EventKey2).Method.Name)
            Prompt(" ")
        End Sub
    
    
        Private Sub FlowLayoutPanel1_DragDrop(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragDrop
            Prompt("Enter DragDrop")
            For Each S As String In CType(e.Data.GetData(DataFormats.FileDrop), String())
                Prompt("e.Data:  " & S)
            Next
            If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
                Dim Txt() As String = CType(e.Data.GetData(DataFormats.FileDrop), String())
                For Each S As String In Txt
                    Prompt("Txt:  " & S)
                Next
                FlowLayoutPanel1.Controls.Add(New Label With {.Text = Txt(0), .AutoSize = True}) : Prompt("Label added   Text:" & FlowLayoutPanel1.Controls(0).Text)
            End If
            Prompt("Exit DragDrop")
            Prompt(" ")
        End Sub
    
    
        Private Sub FlowLayoutPanel1_DragEnter(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragEnter
            Prompt("Enter DragEnter")
            For Each S As String In CType(e.Data.GetData(DataFormats.FileDrop), String())
                Prompt("E.data:   " & S)
            Next
            If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
                e.Effect = DragDropEffects.Copy : Prompt("Effect selected:  DragEffect.Copy")
            Else
                e.Effect = DragDropEffects.None : Prompt("Effect selected:  DragEffect.None")
            End If
            Prompt("Exit DragEnter")
            Prompt(" ")
        End Sub
    
    
    End Class

    • Edited by Crazypennie Tuesday, August 12, 2014 3:32 PM 312654
    Tuesday, August 12, 2014 3:24 PM
  • Luke,

    I don't know if the forums are running today for you on the same way likewise for me "Crazy".

    However, try to look at the Connect link I've sent then it seems to be an existing problem.


    Success
    Cor

    Tuesday, August 12, 2014 3:29 PM
  • Luke,

    I don't know if the forums are running today for you on the same way likewise for me "Crazy".

    However, try to look at the Connect link I've sent then it seems to be an existing problem.


    Success
    Cor

    You got it I think ... When runningAs It don't work !!!

    That is the craziest thing !! ... WTF

    Must be a work around this

     

    Tuesday, August 12, 2014 3:44 PM
  • Dummy1912,

    Are you running your application or your VS as Administrator?

    Tuesday, August 12, 2014 3:46 PM
  • Hello Crazypennie,

    vs is running normal

    but some apps i made must be running as admin

    here are the images from the test you made:

    running in vs as release:

    Execute as Admin:


    But Didn't drop any file :?
    • Edited by Dummy1912 Tuesday, August 12, 2014 4:28 PM
    Tuesday, August 12, 2014 4:13 PM
  • Execute without admin access:


    But didn't drop the file :?
    • Edited by Dummy1912 Tuesday, August 12, 2014 4:27 PM
    Tuesday, August 12, 2014 4:27 PM
  • Dummy1912,

    Do you really have to run the app As administrator?

    Tuesday, August 12, 2014 4:45 PM
  • Cor,

       I am thinking about that and it makes a lot of sens that the drag and drop don't work between Explorer and an application that runs as administrator

    Here why:

    Explorer don't run as administrator .. therefore is considered by the system as being an un-trusted application

    Since Explorer is an un-trusted application, the file that you drag from Explorer has an un-trusted content

    If it was possible to drag from un-trusted application to an application that runAs, it would means that a malicious application could pass a file to an application that runs with the Administrator privilege and have some code executed with privileges. This would make a breach in the security model ... and this is why it is not allow by the system

    Tuesday, August 12, 2014 5:31 PM
  • Not for nothing, but I did post this possibility as the problem yesterday here. He claimed nothing was ever running as admin though.

    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com

    Tuesday, August 12, 2014 5:47 PM
    Moderator
  • Execute without admin access:


    But didn't drop the file :?

    The previous post show Release from VS and with administrator

    I just don't understand How you executed this one ... Without admins. privileges, started from outside VS ??

    From where the error show, the dataFormat was not "FileDrop"
    • Edited by Crazypennie Tuesday, August 12, 2014 6:48 PM 132654
    Tuesday, August 12, 2014 6:46 PM
  • Try this ... with no run as admins, started the way it didn't work

    It wont do the drop, but I think I will see in the ListBox what is the problem 

    Public Class Form1
    
        Private Prompt As Action(Of String) = Sub(S As String) ListBox1.Items.Add(S)
    
    
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
            FlowLayoutPanel1.BackColor = Color.LightBlue
            FlowLayoutPanel1.AllowDrop = True : Prompt("AllowDrop")
            Prompt(" ")
    
            Dim EventKeyField1 = GetType(Control).GetField("EventDragEnter", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Static)
            Dim EventKey1 As Object = EventKeyField1.GetValue(FlowLayoutPanel1)
            Dim EventKeyField2 = GetType(Control).GetField("EventDragDrop", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Static)
            Dim EventKey2 As Object = EventKeyField2.GetValue(FlowLayoutPanel1)
            Dim eventHandlerListField = GetType(System.ComponentModel.Component).GetField("events", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Instance)
            Dim eventHandlerList As System.ComponentModel.EventHandlerList = CType(eventHandlerListField.GetValue(FlowLayoutPanel1), System.ComponentModel.EventHandlerList)
            Prompt("Event DragEnter method:  " & eventHandlerList.Item(EventKey1).Method.Name)
            Prompt("Event DragDrop method:  " & eventHandlerList.Item(EventKey2).Method.Name)
            Prompt(" ")
        End Sub
    
    
        Private Sub FlowLayoutPanel1_DragDrop(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragDrop
            Prompt("Enter DragDrop")
            
            For Each S As String In CType(e.Data.GetData(DataFormats.FileDrop), String())
                Prompt("e.Data:  " & S)
            Next
            If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
                Dim Txt() As String = CType(e.Data.GetData(DataFormats.FileDrop), String())
                For Each S As String In Txt
                    Prompt("Txt:  " & S)
                Next
                FlowLayoutPanel1.Controls.Add(New Label With {.Text = Txt(0), .AutoSize = True}) : Prompt("Label added   Text:" & FlowLayoutPanel1.Controls(0).Text)
            End If
            Prompt("Exit DragDrop")
            Prompt(" ")
        End Sub
    
    
        Private Sub FlowLayoutPanel1_DragEnter(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragEnter
            Prompt("Enter DragEnter")
            Prompt(" ")
            Prompt("start enum format")
            For Each s As String In e.Data.GetFormats
                If e.Data.GetDataPresent(s) Then
                    Prompt("FORMAT:   " & s)
                End If
            Next
            Prompt("end enum format")
            Prompt(" ")
    
            For Each S As String In CType(e.Data.GetData(DataFormats.FileDrop), String())
                Prompt("E.data:   " & S)
            Next
            If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
                e.Effect = DragDropEffects.Copy : Prompt("Effect selected:  DragEffect.Copy")
            Else
                e.Effect = DragDropEffects.None : Prompt("Effect selected:  DragEffect.None")
            End If
            Prompt("Exit DragEnter")
            Prompt(" ")
        End Sub
    
    
    End Class



    • Edited by Crazypennie Tuesday, August 12, 2014 7:03 PM 123654
    Tuesday, August 12, 2014 7:02 PM
  • Yes we do need the administrator option for this app

    because without then our app will not work

    Tuesday, August 12, 2014 9:07 PM
  • thanks again for the sample code

    i will try it out soon after i installed the vs again ( i keep you informed with a new image )

    i restore my pc today and hope it will be fix

    not even sure its my pc has the problem but what the h.ll if not then fine

    i will have to DELETE windows 8.1 for good

    then back to windows 7 lol

    its just so weird that this option wont  / dont work with windows 8

    Tuesday, August 12, 2014 9:11 PM
  • I've investigated this a little bit further and got some information from an expert. But I cannot help you because Reed Kimble is removing my messages from this forum and then it is senseless.

    Sorry



    Cor


    Tuesday, August 12, 2014 9:42 PM
  • The same behavior exists in Windows 7 though. A process run elevated to admin cannot be a drop target for Windows Explorer drags. This is true in Windows 7 and 8.

    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com

    Tuesday, August 12, 2014 10:34 PM
    Moderator
  • :( sorry to hear mr. Ligthert

    i'll say send it to my email but they say i can't publish it :(

    Wednesday, August 13, 2014 6:47 AM
  • hello mr. Kleinma

    well i must say i never had any problems with windows 7

    to run any of my apps as admin and drop files into it

    never ever ever :) but windows 8.1 is a pain :(

    Wednesday, August 13, 2014 6:48 AM
  • hello Crazypennie,

    as promise here the images

    Run without admin access:

    run without admin

    Run with admin access:

    run with admin

    so any conclusions?

    edit:

    i have made this project again in windows 7

    and i can drop with and without admin permissions

    the only thing we get in windows 7 is a dialog that asked you to allow to drop van explorer into the app.

    also the project from windows 8.1 was made does the same thing in windows 7

    works fine.

    so now we like to know what cause this problem in windows 8.1 and how to fix it because its no fun to work with.

    • Edited by Dummy1912 Wednesday, August 13, 2014 1:28 PM
    Wednesday, August 13, 2014 6:56 AM
  • Something just doesn't make any sense here. On your Windows 7 machine, are you running as the "administrator" user name? Did you turn off UAC? You clearly aren't running under the normal Windows 7 settings if you can drag/drop from explorer to your app regardless if you select to run it normally or "as administrator".

    Making a WinForms app in Win7 with just a panel and a listbox on it, with the panel set to AllowDrop = true, this code:

        Private Sub Panel1_DragDrop(sender As Object, e As System.Windows.Forms.DragEventArgs) Handles Panel1.DragDrop
            Dim myFiles() = DirectCast(e.Data.GetData(DataFormats.FileDrop, False), String())
    
            For Each S As String In myFiles
                ListBox1.Items.Add(S)
            Next
        End Sub
    
        Private Sub Panel1_DragOver(sender As Object, e As System.Windows.Forms.DragEventArgs) Handles Panel1.DragOver
            e.Effect = DragDropEffects.Copy
        End Sub

    works to allow drag/drop from windows explorer if you run it normally, but has the EXACT same behavior as Windows 8 when running it as administrator and does not let you drop on the panel from explorer. So if you are saying you are seeing different behavior than this, then your Windows 7 is not configured the standard way, or you have enabled and are using the built in administrator account when you do your testing.

    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com


    Wednesday, August 13, 2014 2:03 PM
    Moderator
  • hello kleinma,

    huh what??

    and yea windows 7 has no UAC anymore

    but i tried this way into windows 8.1 also

    but didn't work still same problem don't allow me to drop it.

    did you know when you turn UAC off in windows 8.1 you can't restore it anymore??

    now i have to reinstall windows again grrrrr

    • Edited by Dummy1912 Wednesday, August 13, 2014 2:44 PM
    Wednesday, August 13, 2014 2:42 PM
  • Dummy,

      Just like Kleinma,  ... I am getting very confused about this all thing

    Wednesday, August 13, 2014 2:48 PM
  • OK, So we now at least have made some progress. You running Win7 with UAC off is the same thing as running with full admin rights all the time. Everything is running with the same level of admin permissions, and explains why this drag/drop works for you in Windows 7. If this app is just for you or just for your company, and everyone turns off UAC, then maybe that will fly, but it won't work out in the wild, as the majority of machines will have UAC turned on, and users will see the same problem as Win8 when running Win7.

    As to your comment that you can't turn on UAC if you have turned it off, this is not true. Not sure what your specific issue is, but I have turned UAC on and off multiple times in Windows 8.


    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com

    Wednesday, August 13, 2014 2:57 PM
    Moderator
  • hello kleinma,

    well its all true what i told you all

    i just reinstall windows 8.1 again pffff

    but fine

    i turned of the UAC in windows 8.1

    but i can't drop files as running with admin permission

    i have the feeling that you guys don't starting to believe me when i tell you those things

    i don't lie you know

    if i do i don't gonna start a topic lol

    i tried so far every demo you made in here

    and runs fine without admin permission

    but i really do need the admin permission for my app i made

    without admin access the users can't add any data into the app.

    @kleinma

    this pc is for my own :)

    Wednesday, August 13, 2014 4:31 PM
  • Hello,

    We believe you, I've tested the code on W8 and Matt did it on W7.

    I think on your question is done more effort than any other question ever in the forums.

    I contacted a high expert at Microsoft and he did spend much time and gave us some explanations.

    The problem is, that it is not as easy like it looks on first sight.

    Tuesday Crazypenny asked you "Do you really have to run the app as administrator".
    In fact he did probably mean "Why do you have to run the app as administrator" this to be able to understand your problem better to get a workaround. He is a French Canadian you know, not a native American (Just meant as joke Luke :-))

    Therefore tell us the reason why it should be run as administrator, maybe can it be done in another way?


    Success
    Cor

    Wednesday, August 13, 2014 5:42 PM
  • Dummy (I hate calling you that, but it is your user name)

    I think I know why you see SOME difference between win7 and win8. Turning off UAC in Windows 7 actually turns off UAC totally. It disables the entire split token standard user/admin user elevation process, and just runs more like the old XP administrator days. In Windows 8, if you disable UAC, it doesn't actually turn off, it just disables all UAC click through prompts that you would normally see when doing some admin function. So this would explain why in Windows 8, even with UAC off, you still have split token credentials and explorer is running standard, and your app is running as admin. It seems like it should work to you on the surface for turning off UAC, but it doesn't because of this very reason. You can see more about this specific difference here:

    http://ebraiter.wordpress.com/2012/11/27/computer-tip-difference-between-user-access-control-in-windows-7-8/

    Back onto the main topic, the answer is pretty cut and dry. If your app needs to run as administrator, then you won't be able to drag/drop from Windows explorer into your app. If you can tell us WHY your app needs to run as administrator, then we may be able to provide you a work around for this, so you can get the functionality you desire.


    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com

    Wednesday, August 13, 2014 5:52 PM
    Moderator
  • Hello again

    @kleinma you can call me Tim ;) if you don't like my nickname :p

    okay i made an app that manage the startup programs onto your PC.

    for easy adding and changing and deleting

    thats why we need full admin permission because without that we can't manage the startup items to add or to be changed.

    hope this helps you better to understand why ;)

    Wednesday, August 13, 2014 6:07 PM
  • Then add your own explorer to that app. It is easy and there are many samples in VB for that. 

    Creating your own windows explorer in VB using the treeview and the listview 

    http://msdn.microsoft.com/en-us/library/vstudio/ms171645(v=vs.110).aspx


    Success
    Cor

    Wednesday, August 13, 2014 6:14 PM
  • I personally would just have my program run as a standard user, so that drag/drop works. You can still read startup items as non admin, you just can't write/edit them back to the windows settings. So when I wanted to do that, I would invoke a second exe that can run as admin, that's only task is to write these changes to the system. This way, my app always runs as standard user, and I only get a UAC prompt when it actually needs to do something that requires admin rights.

    Matt Kleinwaks - MSMVP MSDN Forums Moderator - www.zerosandtheone.com

    Wednesday, August 13, 2014 6:40 PM
    Moderator
  • dear kleinma,

    can you make me a little sample how to do that?

    it will make me happy if i can still use my app without having troubles

    if its not take to much of your time

    thank you

    Wednesday, August 13, 2014 9:06 PM
  • hello mr. ligthert,

    hmm i have no idea if we gonna like that into our app

    i think it ask lots of time to make something like that even to allow to use drag and drop from the own explorer into the flowlayoutpanel

    i even think that our users like to have the easier way to use windows explorer or desktop

    to drop items into the app instead of to make it to hard for a normal user

    if i'm wrong them my excuses.

    • Edited by Dummy1912 Wednesday, August 13, 2014 9:11 PM
    Wednesday, August 13, 2014 9:08 PM
  • Maybe some work, for a good programmer normally less than a day. 

    However, it makes in my opinion your program more valuable if it does not need all kind of tricks to get it running.

    But just my opinion.



    Success
    Cor

    Thursday, August 14, 2014 8:37 AM
  • hello mr. ligthert,

    no worries i understand :)

    maybe you have a point somewhere ;)

    Thursday, August 14, 2014 8:40 AM