473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 2855
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lauren Quantrell | last post by:
I'm trying to drop a file from Windows Explorer (or desktop, etc.) onto a field in Access2K and capture the full file path. I found an posting below that says this is possible but I cannot...
2
by: SamSpade | last post by:
There seems to be two ways to put things on the clipboard ( I don't mean different formats): SetClipboardData and OleSetClipboard If I want to get data off the clipboard do I care how it was put...
3
by: Ajay Krishnan Thampi | last post by:
I have a slight problem implementing 'drag and drop' from a datagrid to a tree-view. I have pasted my code below. Someone please advice me on what to do...pretty blur right now. ==code== ...
6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
3
by: VB Programmer | last post by:
In VB.NET 2005 (winform) any sample code to drag & drop items between 2 listboxes? Thanks!
5
by: sesar | last post by:
How can I impement drag&drop for simple 'dialog base' application... I want to drag&drop txt file and load the text to variable
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
5
by: Andrea | last post by:
How can I drag and drop files from Explorer to my .NET application in Vista? It looks like the DataFormats.FileDrop doesn't work anymore in Vista. An example would be greatly appreciated. Thanks....
5
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.