Forms :: Drag And Drop Like Vista's Explorer?
Sep 25, 2009
Is there a way to drag and drop items like vista where it creates a "ghost" of the icon and text at the cursor position? Like a slightly transparent copy of the item being dragged with the mouse until it is dropped?
View 6 Replies
ADVERTISEMENT
May 25, 2010
I've an app wich alows the user to drag drop images into a picturebox. It works on xp, it doesn't works on vista and seven since the UAC could cause the problem. I've tried running it as administrator and still it doesn't work.
View 1 Replies
Dec 4, 2010
The following website appears to show you you might do Drag/Drop that works like explorer does but I don't know what the code would be in VB, what exactly i'd need or anything else. It's a quite large code base just to make it so you get the same effect as explorer even though it seems to be API's or .dll's that should handle most of the work.
If the API's & .dll's available for this don't handle most of it I don't see why not because well if your meant to get the same effect why is it going to be handled mostly by code? I would think it would be as easy as passing an image or file/folder as string & then there the image is & possibly the functions you want to be allowed or text to be displayed for the drag action & then a little more to determine where your trying to drag to so what the text should be changing to.
Anyways heres the website which has a lot of the information/code in non-vb language, even when translated to VB using online tools I couldn't figure out what did what or what pieces I needed to get a basic drag action to work that has said visual information like explorer does.[URL]..
View 8 Replies
Jun 5, 2011
I'm able to drag and drop a node. The treeview is loaded with files and folders on the HD. The tag of the node has the path to the file/folder. [code] I only want to be able to drag a node into a folder and not into a file, as it does with this code.
View 1 Replies
Dec 10, 2009
In my current project I've run into a problem with dragging and dropping from my app to Windows Explorer. My app requires an "Extraction" of a virtual file (almost like a ZIP/RAR archiver would). The problem is, with all of the dragging to explorer solutions I have found online requires you to have a extracted file already on the filesystem (most likely in a temp folder) before you initiate the drag-drop. I'm trying to do is be able to extract the file AFTER the drag-drop request has already been made to the explorer.
View 1 Replies
Aug 10, 2009
how to Total Folders and including files from Windows explorer into listview using drag & drop method at vb.net
View 3 Replies
Feb 11, 2009
Ive been working on this project of mine for some time now... though im not involved in IT in my current company, im just trying to help to at least have their system computerized (they are still doing it manually by paper & calculator)... I have one problem though which made me stick for 2 days (and still counting) without progress...How To Drag & Drop Between 2 Datagrids Between 2 similar MDI Child Forms
View 16 Replies
Jun 22, 2009
how can i implement dragdrop between 2 child forms (each containing a listbox)?
View 2 Replies
Dec 5, 2011
I am trying to implement drag and drop using labels, when the label is to be dropped in location not currently visible auto scrolling should happen.
View 2 Replies
Oct 6, 2009
I have been given the task of making a small program in vb.net to have two list boxes. The first list box contains the data and the second one is blank, when you select the one bit of data from the first list box it can be dragged and dropped into the other list box. my task is to make it so you can select multiple bits of data from the first list box and all that is selected is draged over to the second one when you drag and drop it.
View 1 Replies
Feb 11, 2009
Drag & Drop Between 2 Datagrids Between 2 MDI Child Forms Ive been working on this project of mine for some time now... though im not involved in IT in my current company, im just trying to help to at least have their system computerized (they are still doing it manually by paper & calculator)... I have one problem though which made me stick for 2 days (and still counting) without progress... How To Drag & Drop Between 2 Datagrids Between 2 similar MDI Child Forms my apologies, im not that adept in VB.net programming...
View 1 Replies
Oct 5, 2011
I have two list boxes. A users selects a value from each, clicks a button and the application creates a relationship between the two selected items by saving them in an array and displaying the relationship in a third list box.
What I want to allow is for users to be able to drag a value from one list box and drop it on top of another value. I have the code to capture the value of the item dragged but I don't see how to capture the item that the data is dropped onto.
Is there a way to capture the targeted selected item?
View 2 Replies
Nov 7, 2009
I need to drag and drop to textbox from tree view. Here while drag and drop to text box i need to add the dragged text to anywhere in the text box which we have already dragged some nodes here.
For example.in treeview i have "node1" and "node2"now i am going to add "node2" to textbox and in front of "node2" i need to add "node1" and then at the end of "node2" again i need to drop "node1" like that.
View 1 Replies
Nov 18, 2009
I am currently working on a drag and drop project and I was wondering if there is a way to drag picturebox1 and drop it in picturebox2; that will snap to a specific location in the picturebox2?
View 2 Replies
Aug 27, 2009
ListView Drag&Drop allow to Drag&Drop between form??
Public Class frmModule
Private Sub ListView1_ItemDrag(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ItemDragEventArgs) Handles ListView1.ItemDrag[code]....
Can it be drap and drop item to other form control??How to write the event when mouse up at the other form control?
View 2 Replies
Oct 31, 2010
I am using Excel 2007, VS2008 Pro.I am building a VSTO Add-in that requires "drag and drop from Excel cells to a drag-enabled task pane".So far I notice that I can only drag and drop within the cells themselves. It does not allow me to drop into the task Pane or drag past the sheet limits.(http:)[url]...
Note: The task pane has drag drop enabled, I ahve already tested I can drag/drop from task pane to excel but I need to do this the other way around?
View 1 Replies
May 25, 2011
I am trying to figure out a way to include the listview's tag field when dragging one listview's subitems into another listview. I am hoping someone here has experience with this. My Listview drag code is below - the two listviews that I am dragging subitems into or from are LV1 and LV3. Also, this is being done in Visual Basic 2008 and the project is a windows application.
[Code]...
View 4 Replies
Oct 20, 2010
drag and drop nodes within the same tree (not between trees) when users drag and drop nodes within the tree, give them the option to move the original node to a new location within the tree OR to just copy the original node in a new location (seems complex but I have a month to figure this out). change the system default blue highlight for selected nodes to another color change the system default cursors for invalid and valid drops (instead of the circle with slash indicating invalid target, i want a red minus) and (instead of the little plus sign with little box indicating a valid target, i want just a big green plus sign) add a red insert line to indicate where the node would be dropped within a tree also drag and drop the text of a node from the tree to a textbox add a "folder" image next to parent nodes and a "document" image next to children nodes
I have looked through the internet but I am having difficulty sorting through all the information available (I see a lot of information for Visual Basic 5 and 6, and those codes don't work for me in visual studio 2008). I can email anyone my code I have so far.
Public Class Form1
Private MouseIsDown As Boolean = False
Public Sub TreeView_ItemDrag(ByVal sender As Object, ByVal e As ItemDragEventArgs)Handles TreeView1.ItemDrag
[Code]....
View 4 Replies
Apr 5, 2011
Is it possible to reorder the elements of a drop down list (combobox) via drag and drop?For example, when the list is dropped down, I want the user to be able to drag the items up or down to reorder them. I tried this (and some google searching) but I'm wondering if its just not possible:
Private Sub cmbClassLists_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cmbClassLists.MouseDown
If cmbClassLists.DroppedDown And Not cmbClassLists.SelectedIndex = -1 Then
[code].....
View 2 Replies
Dec 4, 2009
Is there a simply way using vb.net 3.5 to determine the drop location/path of a drag and drop operation from a winform to windows explorer.
View 4 Replies
Jul 20, 2010
everytime i run my project here on laptop with vista as its os, it says internet explorer cannot display the webpage. but in my desktop im using xp and im not encountering that problem.
View 7 Replies
Dec 28, 2010
How do you drag a listviewitem, to desktop, windows explorer, Ect...
For example, i got a listviewitem in a listview, and the text is the name of a file, and the Tag the filename, in a string... When i drag the item, to the desktop, or a folder in Windows Explorer, it will automaticly create a shortcut or something...
View 9 Replies
Oct 27, 2010
Requirement is to drag a text file from Windows Explorer and drop into a RichTextBox opened, that is so the text can be read amended etc
View 3 Replies
Feb 5, 2009
How do you drag a listviewitem, to desktop, windows explorer, Ect...For example, i got a listviewitem in a listview, and the text is the name of a file, and the Tag the filename, in a string... When i drag the item, to the desktop, or a folder in Windows Explorer, it will automaticly create a shortcut or something.
View 1 Replies
Jun 23, 2009
I want to be able to hold CTRL down to select multiple text entries and drag them all to certain text boxes. Or even one at a time, but once I try dragging another word into the box it replace the first one. Is there any way to just have it add to the text box rather than replace it?
And if possible, place a "-" between each entry?
This is the pop-up form with the listbox that contains the words to drag:
Private Sub ListBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDown
ListBox1.DoDragDrop(ListBox1.SelectedItem, DragDropEffects.Copy)
[Code]....
View 13 Replies
Jan 20, 2011
I am wondering how to do simple drag and drop in wpf? All examples I found over the new were in C#
View 8 Replies
Feb 23, 2010
How would i set a panel to allow drag-n-drop from explorer to my program, only with dll and exe files though.
View 4 Replies
Sep 9, 2009
I am writing a small program that has two list box's which are populated from my sql database. I want to drag an item from LB1 to column1 in a datagridview and drag an item from LB2 to column2 in the same datagridview.
I am getting close, but I am having trouble getting the data to drop. I did some testing and I can drop a string, but I am not able to get the string data from my listbox. I just get a datarowview. I see the string inside the "itemarray", but cannot get to it.
Here is my dodragdrop:
LB_OriginalPallets.DoDragDrop(LB_OriginalPallets.SelectedItems(indexOfOldPalletToDrag), DragDropEffects.Copy)
View 10 Replies
May 8, 2009
will give me information if the foregroundwindow is being draggedor not something for example GetDragState(Foregroundwindow)does any API of this kind even exists?
Also, I'm working with this code to get all main window handles:
For Each proc As Process In Process.GetProcesses
If (Not proc.MainWindowHandle = 0) And (proc.MainWindowHandle <> ExceptWin) And
[code].....
View 2 Replies
Mar 26, 2012
How to implement Drag and Drop multiple objects in the form in Visual Basic. The drag-able object will be provided within the same form but in a different panel. I must be able to delete the object also.
View 1 Replies