473,386 Members | 1,758 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,386 software developers and data experts.

ListBox DragDrop

I want to be able to arrange the order of items within a ListBox using drag-and-drop and also drop an item at a specific location of a different ListBox. The following Microsoft Knowledge Base Articles describe exactly what I want to do, except that they are for pre-.NET.

How To Arrange Order of List Items within ListBox Control (http://support.microsoft.com/default...;en-us;q167746)
How to Drop Item into Specified Location in VB List Box (http://support.microsoft.com/default...kb;EN-US;80187)

Does anybody know of any VB.NET examples?

Thanks,
Lance
Nov 20 '05 #1
2 4274
This is exacly what you're looking for

http://msdn.microsoft.com/library/de...gdroptopic.asp

Manny

"ljlevend" <lj******@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
I want to be able to arrange the order of items within a ListBox using drag-and-drop and also drop an item at a specific location of a different
ListBox. The following Microsoft Knowledge Base Articles describe exactly
what I want to do, except that they are for pre-.NET.
How To Arrange Order of List Items within ListBox Control (http://support.microsoft.com/default...;en-us;q167746) How to Drop Item into Specified Location in VB List Box (http://support.microsoft.com/default...kb;EN-US;80187)
Does anybody know of any VB.NET examples?

Thanks,
Lance

Nov 20 '05 #2
Great! Thanks.

"Manuel Canas" wrote:
This is exacly what you're looking for

http://msdn.microsoft.com/library/de...gdroptopic.asp

Manny

"ljlevend" <lj******@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
I want to be able to arrange the order of items within a ListBox using

drag-and-drop and also drop an item at a specific location of a different
ListBox. The following Microsoft Knowledge Base Articles describe exactly
what I want to do, except that they are for pre-.NET.

How To Arrange Order of List Items within ListBox Control

(http://support.microsoft.com/default...;en-us;q167746)
How to Drop Item into Specified Location in VB List Box

(http://support.microsoft.com/default...kb;EN-US;80187)

Does anybody know of any VB.NET examples?

Thanks,
Lance


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nick Stubbs | last post by:
Can anyone tell me how to code the listbox so I can move an item up and down the listbox with the mouse. For example, the play list in Winamp 5 can be sorted by you selecting a song and moving it...
0
by: L.Peter | last post by:
Dear Group, I am doing Drag and Drop function and see this problem if I select 3 from listBox1 and drag to listBox2, the value in listBox1 is not updated, even I move (or use up and down keyboard)...
0
by: Spare Change | last post by:
Given for a ListBox this.HLinks.MouseDown += new System.Windows.Forms.MouseEventHandler (this.HLinks_MouseDown);// this.HLinks.SelectedIndexChanged += new...
3
by: Dean Slindee | last post by:
In a checked listbox, I am allowing drag/drop of the items within (resequencing). Problem is, when dropping a checked item, the checked state always reverts to unchecked (unwanted). Anyone know...
0
by: Bernie Yaeger | last post by:
OK, I have drag-drop working between one listbox and another (and back) with the code below. But I can't get it to work when I change the selection mode to multi or multi extended. Any help...
11
by: John Dann | last post by:
I'm still struggling to find a way of reordering the items within the same single listbox with drag and drop. I think I've got the drag working but it's the drop code I can't figure out. What I...
3
by: thomasp | last post by:
Has anyone got some sample code to do drag and drop from one listbox to another listbox using VB.Net 2005. The below code works for draging and droping one at a time, but not for multiselected...
0
by: John Dann | last post by:
I had a listbox that allows reordering of listed items using the mouse to drag and drop. In the DragDrop event handler, the key instructions are: MyListBox..Items.RemoveAt(PreMoveIndex)...
0
by: Alex | last post by:
Subject: Help with DoDragDrop event? From: Alex <me112006@test.com> Newsgroups: microsoft.public.dotnet.languages.csharp Hi all, I'm having a problem with drag/drop on listboxes... ...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.