Hi Tzipi Rosenfeld,
Thanks for your post. To disable both drag and drop functionality by modifying both the “DragWidth” and “DragHeight” values in the Windows Registry (Regedit), follow these steps:
Important Note: Editing the Windows Registry can have significant consequences if done incorrectly. It’s crucial to create a backup of your registry or set a system restore point before proceeding.
Here are the steps to disable drag and drop using Regedit for both DragWidth and DragHeight:
- Press Win + R to open the Run dialog box.
- Type regedit and press Enter. This will open the Windows Registry Editor.
- In the Registry Editor, navigate to the following key:HKEY_CURRENT_USER\Control Panel\Desktop
- On the right side, look for the value named DragWidth. If it doesn’t exist, you may need to create it. To create it, right-click on an empty space in the right pane, choose New > String Value, and name it DragWidth.
- Double-click on the DragWidth value to edit it.
- In the “Edit String” dialog box, change the value data to 5000. This value effectively disables drag and drop for width.
- Click OK to save the changes.
- Now, create another new String Value by right-clicking on an empty space in the right pane, choose New > String Value, and name it DragHeight.
- Double-click on the DragHeight value to edit it.
- In the “Edit String” dialog box, change the value data to 5000. This value effectively disables drag and drop for height.
- Click OK to save the changes.
- Close the Registry Editor.
- You may need to restart your computer or log out and back in for the changes to take effect.
By setting both “DragWidth” and “DragHeight” values to 5000, you will effectively disable both width and height drag and drop operations in Windows.
Reference: How To Disable Drag and Drop on Windows 11 - Origami IT Lab - Blog
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.