VS 2005 ListView Drop Feedback?

May 20, 2011

2 ListViews
Listview1
ListView2
Both have Drop enabled

List 1 has a bunch of invoice #,s in column 1. Column 2 is the amount List 2 has a bunch of clients.Drag invoice from list1 to a client in list2.how do I know what client I dragged to in List2? I would want the rowtag probably.

View 6 Replies


ADVERTISEMENT

Drag And Drop - Change Cursor As Feedback In DragDrop

Mar 5, 2011

Working on a DragDrop application. I have a class object (built as an object) which has a GroupBox that is enabled for DragDrop.

In the class I have set it up so that the cursor will change when it enters the groupbox, leaves the groupbox, mouse is down within the groupbox and drag/drop is working. I also set up a label in the class object and changed the text in that label as well. Basically, the text changes in the label as expected including 'FEEDBACK' appearing when I am dragging the object BUT the cursor stays stubbornly as a pointer. This is tghe state of affairs either when I debug the class or when, after I build the class, it is run as part of the main program.

Here are the subs set up in the class.

Private Sub GroupBoxSourceMouseDown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBoxSource.MouseDown
GroupBoxSource.DoDragDrop(GroupBoxSource.Text, DragDropEffects.Copy)

[Code].....

View 2 Replies

Drag And Drop - Change Cursor As Feedback In DragDrop?

May 25, 2010

drag and drop - Change Cursor as Feedback in DragDrop

View 8 Replies

VS 2005 - ListView Drag And Drop

May 20, 2011

In the attached program, I have 3 listviews.
1 is Source Invoices
2 and 3 is Customers.

When I drag something from ListView1 - it stays there, and turns a different color to show it has already been assigned. It stays in the list. This is what I want. When I drag something between 2 and 3, it should delete from the source and clone to the destination. It does this when I move 1 at a time, but if I select multiples (try 5 records) it does 3 of them, then the source list gets an error:
System.NullReferenceException: Object reference not set to an instance of an object.

If I highlight all 5 items in list 2 or 3 - then select the top item as the item to drag across, it seems to work.
If I highlight all 5 items in list 2 or 3 - then select the middle item as the item to drag across, it seems to NOT work.

I have tried going from top of list to bottom. Then thought, since I am deleting rows, maybe I should start at bottom and work up. Same thing?

View 22 Replies

VS 2008 Listview Drag And Drop (preserving The Listview .tag After Drag And Drop)

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

VS 2005 ComboBox Drop Up Instead Of Drop Down

May 9, 2011

ComboBox drop up instead of drop down..i want to defualt for a particular drop down box to work this way how can i do it.

View 6 Replies

ListView Drag&Drop Allow To Drag&Drop Between Form?

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

IDE :: Drag And Drop In The Same Listview?

Jul 22, 2009

I am trying to implement a drag and drop operation in a listview (the listview is set for Details). The idea is to be able to allow the user to select one or more items and then "move" them elsewhere in the list.and modified it some because that example does the operation between two listviews, and here I am trying to do everything in the same one.Here's the code as I have it:

Private Sub ListView1_ItemDrag(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemDragEventArgs) Handles ListView1.ItemDrag
Dim myItem As ListViewItem

[code].....

View 6 Replies

Drag And Drop From OpenFileDialog To ListView?

Sep 15, 2009

I want to drag and drop avi files to a listview for burning from a OpenFileDialog box. I have used most of the code on here and nothing works. I am using VS 2008 Pro, OS is Vista. If there is any code out there, could someone Please point me in the right direction.

THNX in advanced.VB 6.0, VBExprss, ASP,Net, & Gaming

View 7 Replies

Drop Items Into Specific Group In A Listview?

Jul 12, 2010

I'm trying to drag an item between two Groups in the same ListView called 'listTasks'.

Private Sub listTasks_ItemDrag(ByVal sender As Object, ByVal e As ItemDragEventArgs) Handles listTasks.ItemDrag
listTasks.DoDragDrop(listTasks.SelectedItems, DragDropEffects.Move)
End Sub
Private Sub listTasks_DragEnter(ByVal sender As Object, ByVal e As DragEventArgs) Handles listTasks.DragEnter

[Code]...

With listTasks.PointToClient(New Point(e.X, e.Y)) you could use listTasks.GetItemAt(p.X, p.Y) to get the ListView item you're over. Is there something like this for Groups? Or perhaps a better way to determine what group is the target of a drag-drop?

View 1 Replies

Listview Drag & Drop - Items Go To End Instead Of Where Dragged

Jul 1, 2010

I am trying to set up a listview where I can reorder the items, but no matter what I do the item i drag and drop goes to the end of the listview. I searched and tried to fix this issue but I just can't seem to find a fix.

[Code]....

View 5 Replies

Change Order Of Listview Columns Via Drag & Drop?

Mar 11, 2010

How would i change the order the colums with drag and drop[code]...

View 1 Replies

Drag And Drop From ListView Control, To Shell (Desktop)

May 20, 2009

This is a little diffrent from your standard drag and drop, but I am trying to find out a way to support drag and drop, from a list control, which is displaying a list of files, held as "blobs" in a SQL database (compressed data in my own format). When the form is opened, I obtain a list of all the file names within that given table in the database, and display it to the user in the list view control. The user then has the option of dragging that ListItem from the ListView on to the dektop (or other directory location). Upon doing so, I need to be able to read the data from SQL, decompress the data (in my own format) and then save it as a file at the dropped location.

My main problem is detecting when the ListItem is dropped outside of my application, as I want to use this dropping event to trigger the code in to obtaining a copy of that file from the database, and save it in to the "dropped" directory, where ever that may be.

So Im mainly looking in to how I can "see" the final location where the item is dropped, and how I can start off the drag and drop operation in the first place with no initial data (since I have not obtained the file at the start of the operation). Getting the file at the start of the drag and drop operation intoduces "lag" while the application makes the trip to the SQL database (via web service) and obtains the data, so I need to carry out that trip to the database, at the end, while still allowing "Windows" to act as if I am dragging and dropping a file...

I did consider multi-theading, and downloaind the file from the database while the drag and drop operation is in progress, but then it becomes a race between the data being obtained from the database, and the user dropping the file.

Im using VS2005, SQL 2005 where the file is stored as a blog. SQL is on another PC running a web service which I interact with, to allow my application to talk to the database over both a LAN and WiFi via the internet. Compression and de-compression is handed at the client side application (for the file itself, in order to reduce the footprint created by the internet traffic) , where the user interface is displayed.

View 6 Replies

VS 2005 : Get The Value From A Drop Down Box?

Jul 9, 2009

I am able to successfully get a value from a datagridview using the following

MsgBox(Files.Item(4, i).Value)

When the cell has a drop down, I am not able to get the value, it just comes back blank.How can I get the value from a drop down box?

View 2 Replies

VS 2005 Display The Listview Subitem In The Listview?

Aug 27, 2009

I am trying to display the listview subitem in the Listview .Actual Problem Dispaly:I have to dispaly the three values :

BARcode CheckoutFlag TAGUID
L00657 Loo657 E00010003E

But ,I am getting the wrong display:

BARcode CheckoutFlag TAGUID
E00010003E Loo657 E00010003E

I am unable to print the barcode value.where ever Ia m able to display the Little value.The main two functions are below.

vb.net
Private Sub rfLoadtoList(ByVal iBarcode As String, ByVal iTitle As String, ByVal ImgIndex As Integer, ByVal bgColor As Color, ByVal frColor As Color, ByVal cFlag As Boolean)
Dim Srnumber As Integer

[code].....

View 1 Replies

How To Total Folders And Including Files From Windows Explorer Into Listview Using Drag And Drop Method At .net

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

VS 2005 Button With Drop-down Images

Jun 17, 2011

I am working on button component, and I would like to get up and down arrow keys on the button, and on the click event of these arrow keys to display the images, proposed functionality in the form can be done further. I want to display an image with the text and the arrow keys to display the images when I click on the button like this:

View 17 Replies

[2005] Drag And Drop With TreeViews?

Feb 3, 2009

Here is my situation:

I have a TreeView (TreeView1) on the left part of the screen with computers, then I have a list of files on the right side in another TreeView (TreeView2). I would like to drag a file from TreeView2 to TreeView1 and copy the file from the local machine to that other computer.

Now I have the code in a separate function to do the file IO, so all I need to know is how to do the drag and drop..

View 8 Replies

[2005] Drop Down Duplicate Values?

Jan 20, 2009

I have a fairly large Drop down menu:

<asp:DropDownList ID="DropDownList8" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList8_SelectedIndexChanged">
<asp:ListItem Value="" Selected="True"></asp:ListItem>

[code]......

View 8 Replies

VS 2005 - Drag And Drop From One List Box To Another Listbox

May 2, 2012

I want to select some user from list of user(listbox1) to another listbox(listbox2). The listbox1 contains the userids which is from a access table. If i move from listbox1 to listbox2 with the default values it is working fine, but when i try to do the same which is loaded from access table i am getting error. "Items collection cannot be modified when the DataSource property is set." [Code]

View 2 Replies

VS 2005 - Limiting The Combobox Drop Down List

Sep 18, 2009

My combobox dropdownlist contains 60 to 65 items. So i want to show 5 items in the dropdownlist of my combobox and add a vertical scroll bar in it so that the user can scroll it and see the items. How to add a vertical scroll bar in the combobox dropdown list? I want to add this vertical scroll bar only when the dropdown list contains more than 5 items.

View 5 Replies

VS 2005 Drag And Drop From Files On My Computer

Jul 8, 2009

I am trying to do drag and drop from files on my computer.Say the user has a file on the desktop, and he/she drags it onto the open application, I would like it to read the file path of the file and put that in the first column of my DataGridViewI have tried this but get no luck, I have DataGridView AllowDrop equal to True, but when I drag a file to it I get the "Circle with a line through it" action meaning it can't be done.How do I drag and drop?

View 3 Replies

VS 2005 Drag And Drop From TreeView To Textbox?

Sep 3, 2010

vb
Private Sub SystemFields_ItemDrag(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemDragEventArgs) Handles SystemFields.ItemDrag

[code].....

View 4 Replies

VS 2005 Drag Drop Image In Panel

Mar 19, 2010

I want to drag drop a picture box in a panel, but the problem with this code is that the picture box doesn't drop where my cursor is. Can someone help me.

[code]...

View 1 Replies

2005 - Copy ListView To ListView?

Jan 23, 2008

VB.NET 2005

Anyone has a quick way to copy a listview to a new listview?

It tried the following, but it crashes ..

Dim arrTemp(lvwTemp.Items.Count) As ListViewItem
lvwTemp.Items.CopyTo(arrTemp, 0)
lvwObjectsFound.Items.AddRange(arrTemp)

[Code].....

View 4 Replies

Make A Drag And Drop Teeth Chart In VB 2005?

Feb 17, 2009

How can i make a drag and drop teeth chart in vb2005? i really need help, please just tell me how to go about it? i just need a simple dental teeth chart.

View 1 Replies

VS 2005 Binding Data To Drop Down List From XML Query

Sep 21, 2009

i have an application integrating the an API (autotask web services). I get the data by using a XML query opposed to a SQL query. I'm trying to figure out how to fill a dropdown list with the returned data. Here is my

Dim AccountID As Integer = 29783925
' Query returns Account details for account with the ID AccountID
Dim strQuery As String = "<queryxml><entity>Account</entity>" & _

[Code]....

View 10 Replies

VS 2005 Drag From Tree View And Drop To Gridview?

Jul 29, 2010

i have a treeview filled with directory structure, now want to drag some file name from treeview and drop it to GridView.

i tried with the Item_Drag event it works for drag only...but GridView's DropOver event doesn't work what can do ?

View 1 Replies

Creating Adorners At Runtime Using 2005 For Resizing ,Drag And Drop?

Feb 23, 2009

I am creating a Visual basic Editor application. the thing i amnot able toselect the multiple controls at runtime from my application. Is the AdornerWindow supported at runtime to select the multiple controls at runtime ??RegardsVB 8.0VS.

View 1 Replies

VS 2005 Adding A Refresh Button To Update Combo Box Drop Down List?

Jul 16, 2009

See the below

Imports System.Data
Imports System.Data.OleDb
Public Class Form1

[Code]....

the last value inserted into the access database will be add to the drop down list of their corressponding combo box.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved