469,950 Members | 2,362 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Simple drag/drop in VB.Net 2k5 under Vista?

Hi, all! Using VB .Net 2k5 under Vista Business...

I'm trying to put together a very basic drag-and-drop for file
copying, and can't seem to get DragDrop events (Form, PictureBox,
TextBox, etc) to fire at all, and DragEnter only fires if the drag
operation STARTS on the form (kinda defeating the purpose of a
drag-and-drop file copier). Is there some trick to getting it to
work? I've tried several different samples from MSDN and this forum,
and still no-go. Regardless of whether I'm dropping on a form or
control (yes, I'm certain the AllowDrop properties are set to TRUE),
any attempts to drop from outside the main Form only displays the
slashed-circle cursor (can't drop). Event handlers for DragEnter and
DragDrop have been created and implemented per examples, but still
nothing.

Suggestions? Ideally I want to use something like a PictureBox, but
after having read that MS says PictureBox wasn't intended to be used
like this, I'm sticking to just implementing the code at the Form
level (I can pretty it up later).

Thanks!
Jack
Feb 1 '08 #1
1 2705
Steve Bottoms <St***@SierraNevadaSoftware.net>'s wild
thoughts were released on Fri, 01 Feb 2008 13:39:49 -0800
bearing the following fruit:
>Hi, all! Using VB .Net 2k5 under Vista Business...

I'm trying to put together a very basic drag-and-drop for file
copying, and can't seem to get DragDrop events (Form, PictureBox,
TextBox, etc) to fire at all, and DragEnter only fires if the drag
operation STARTS on the form (kinda defeating the purpose of a
drag-and-drop file copier). Is there some trick to getting it to
work?
Are you running the IDE 'as administrator'?

The reason I ask is you cannot drag and drop between things
with different levels of access.

Try running the compiled version.

J
>I've tried several different samples from MSDN and this forum,
and still no-go. Regardless of whether I'm dropping on a form or
control (yes, I'm certain the AllowDrop properties are set to TRUE),
any attempts to drop from outside the main Form only displays the
slashed-circle cursor (can't drop). Event handlers for DragEnter and
DragDrop have been created and implemented per examples, but still
nothing.

Suggestions? Ideally I want to use something like a PictureBox, but
after having read that MS says PictureBox wasn't intended to be used
like this, I'm sticking to just implementing the code at the Form
level (I can pretty it up later).

Thanks!
Jack
--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde
Feb 5 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Lauren Quantrell | last post: by
2 posts views Thread by SamSpade | last post: by
3 posts views Thread by Ajay Krishnan Thampi | last post: by
6 posts views Thread by jojobar | last post: by
3 posts views Thread by VB Programmer | last post: by
5 posts views Thread by sesar | last post: by
1 post views Thread by www.web20developers.com | last post: by
5 posts views Thread by Andrea | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.