1. <legend id='vqguT'><style id='vqguT'><dir id='vqguT'><q id='vqguT'></q></dir></style></legend>
    • <bdo id='vqguT'></bdo><ul id='vqguT'></ul>

      <tfoot id='vqguT'></tfoot>

      <i id='vqguT'><tr id='vqguT'><dt id='vqguT'><q id='vqguT'><span id='vqguT'><b id='vqguT'><form id='vqguT'><ins id='vqguT'></ins><ul id='vqguT'></ul><sub id='vqguT'></sub></form><legend id='vqguT'></legend><bdo id='vqguT'><pre id='vqguT'><center id='vqguT'></center></pre></bdo></b><th id='vqguT'></th></span></q></dt></tr></i><div id='vqguT'><tfoot id='vqguT'></tfoot><dl id='vqguT'><fieldset id='vqguT'></fieldset></dl></div>

      <small id='vqguT'></small><noframes id='vqguT'>

      C# 拖放在 Windows 7 上不起作用

      时间:2023-08-24
        <legend id='iB7wX'><style id='iB7wX'><dir id='iB7wX'><q id='iB7wX'></q></dir></style></legend>
        <i id='iB7wX'><tr id='iB7wX'><dt id='iB7wX'><q id='iB7wX'><span id='iB7wX'><b id='iB7wX'><form id='iB7wX'><ins id='iB7wX'></ins><ul id='iB7wX'></ul><sub id='iB7wX'></sub></form><legend id='iB7wX'></legend><bdo id='iB7wX'><pre id='iB7wX'><center id='iB7wX'></center></pre></bdo></b><th id='iB7wX'></th></span></q></dt></tr></i><div id='iB7wX'><tfoot id='iB7wX'></tfoot><dl id='iB7wX'><fieldset id='iB7wX'></fieldset></dl></div>
              <bdo id='iB7wX'></bdo><ul id='iB7wX'></ul>
                <tbody id='iB7wX'></tbody>

                <tfoot id='iB7wX'></tfoot>

                <small id='iB7wX'></small><noframes id='iB7wX'>

                本文介绍了C# 拖放在 Windows 7 上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我有一个项目使用 C# winforms 已经有一段时间了.我在 Windows 7 发布之前实现了拖放功能.像魅力一样工作.但是,当使用 Windows 7 时,它不起作用.该事件甚至没有被触发.

                I have had a project for quite a while using C# winforms. I implemented a drag-drop function before windows 7 was released. Worked like a charm. However, when using windows 7 it does not work. The event doesn't even get triggered.

                AllowDrop 设置为 true.订阅 DragEnter 时,它不会在 Windows 7 中调用(不确定 vista).但在 XP 上它一直有效.该程序以管理员权限运行.

                AllowDrop is set to true. When subscribing to DragEnter it does not get called in windows 7 (not sure about vista). But on XP it works all the way. The program is run with administritave priviliges.

                windows 7 和 xp 中的拖放有什么不同吗?不知道是否相关,但我使用的是 x64

                Is there any difference in the drag drop in windows 7 vs xp? Don't know if it's relevant, but I'm using x64

                推荐答案

                源进程和目标进程需要具有兼容的安全级别/权限.例如,如果您的源是 Explorer 并且它以用户级别权限运行,但您的目标应用程序以管理员(提升)级别权限运行,您将无法拖放,因为这被视为安全问题,因为目标正在以更高级别的权限运行.

                The source and target processes need to have compatible security levels/privileges. For example, if your source is Explorer and it is running with user level privileges, but your target application is running with administrator (elevated) level permission, you will not be able to drag&drop as this is seen as a security issue as the target is running with a higher level of privileges.

                这篇关于C# 拖放在 Windows 7 上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:通过互操作为 Microsoft Access 创建宏 下一篇:UAC 提升不允许拖放

                相关文章

                最新文章

                1. <legend id='8u2U6'><style id='8u2U6'><dir id='8u2U6'><q id='8u2U6'></q></dir></style></legend>

                    <i id='8u2U6'><tr id='8u2U6'><dt id='8u2U6'><q id='8u2U6'><span id='8u2U6'><b id='8u2U6'><form id='8u2U6'><ins id='8u2U6'></ins><ul id='8u2U6'></ul><sub id='8u2U6'></sub></form><legend id='8u2U6'></legend><bdo id='8u2U6'><pre id='8u2U6'><center id='8u2U6'></center></pre></bdo></b><th id='8u2U6'></th></span></q></dt></tr></i><div id='8u2U6'><tfoot id='8u2U6'></tfoot><dl id='8u2U6'><fieldset id='8u2U6'></fieldset></dl></div>
                    • <bdo id='8u2U6'></bdo><ul id='8u2U6'></ul>

                  1. <tfoot id='8u2U6'></tfoot>
                  2. <small id='8u2U6'></small><noframes id='8u2U6'>