c# - Drag'n'Drop in form still disabled -



c# - Drag'n'Drop in form still disabled -

usually, property sufficent (short version):

namespace diapowin { partial class mainwindow { private void initializecomponent() { this.allowdrop = true;

allowdrop set true main form, , listbox (supposed target of drag/drop).

here event handlers (from this post) :

private void listimages1_dragdrop(object sender, drageventargs e) { if (e.data.getdatapresent(dataformats.filedrop)) { string[] filenames = (string[])e.data.getdata(dataformats.filedrop); textdelai.lines = filenames; } } private void listimages1_dragenter(object sender, drageventargs e) { if (e.data.getdatapresent(dataformats.filedrop)) { e.effect = dragdropeffects.copy; } }

but still receive forbidden mouse cursor when attempting drop folder (even file). ideas?

okay, this post 1 read. closed , re-launched visualstudio without administrator rights, works :(

c# winforms

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -