Right-click on the D2 shortcut, select Properties, click the Compatibility tab, then tick the check box for "Run this program in compatibility mode for", and select Windows XP from the dropdown list. Re-run D2 (it will give you a UAC prompt, unless you have UAC disabled...this is normal).