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

Move items inside a listview


Hi!

I have this question: I have a listview which gets populated with some file
names.

At the moment I have implemented d&d, but I'd like also to be able to move
up and down items inside my listview by using the mouse.

Any sample about it?

Thanks a lot!
Nov 21 '05 #1
3 2790
Progalex,

It is just copying, removing from the listview and inserting new items

Or inserting and removing the same as you wish.
http://msdn.microsoft.com/library/de...nserttopic.asp

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

I hope this helps?

Cor

"Progalex" <Pr******@discussions.microsoft.com>
...

Hi!

I have this question: I have a listview which gets populated with some
file
names.

At the moment I have implemented d&d, but I'd like also to be able to move
up and down items inside my listview by using the mouse.

Any sample about it?

Thanks a lot!

Nov 21 '05 #2
Progalex,

It is just copying, removing from the listview and inserting new items

Or inserting and removing the same as you wish.
http://msdn.microsoft.com/library/de...nserttopic.asp

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

I hope this helps?

Cor

"Progalex" <Pr******@discussions.microsoft.com>
...

Hi!

I have this question: I have a listview which gets populated with some
file
names.

At the moment I have implemented d&d, but I'd like also to be able to move
up and down items inside my listview by using the mouse.

Any sample about it?

Thanks a lot!

Nov 21 '05 #3

These pages are a very good starting point to learn something about listview
items.

I think I have to try some alternative code, because I'd like to be able to
move (and consequently manually reordering) items within a unique listview.

So when I left click an item, I'd like to be able to move it up and down for
one or more positions..

That's sure, I have to study!

Progalex
Nov 21 '05 #4

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

Similar topics

7
by: Progalex | last post by:
Hi everybody! I have a listview and a treeview in a form . With an OpenDialog I let the user select multiple files and then these files are added to the listview with the complete pathname,...
0
by: Progalex | last post by:
Hi! I have this question: I have a listview which gets populated with some file names. At the moment I have implemented d&d, but I'd like also to be able to move up and down items inside my...
0
by: Filippo Bettinaglio | last post by:
Hi, I use VS2005 , C#, .net2.0 framework. I need to be able to position where I want the Items inside a listview. I tried the belowed code but the items are always align togheter i turn off...
5
by: Phill W. | last post by:
(VB'2003) What's the correct way to remove multiple, selected items from a ListView control (say, from a ContextMenu)? I ask because I'm getting a very annoying ArgumentOutOfRangeException...
0
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the...
2
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the...
4
by: mikkoO8 | last post by:
hi. im actually making a desktop cleaner that can move the files and icons to a folder inside the listview box. i can make the listview box filled with files contains at the desktop and i can make...
1
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, In my application I need to periodically remove all current items from a ListView and add a new set into it. The following abbreviated code contains the basic idea: private void...
1
by: prpradip | last post by:
In my application ListView is inside panel (XP theme enable), item text in the ListView control overlaps other items in small icon view. The items are drawn as if aligned to a grid and this causes...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.