473,407 Members | 2,629 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,407 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 2798
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
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?
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
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.