列表视图选择的索引将一一移动 [英] List view selected index will move one by one

查看:70
本文介绍了列表视图选择的索引将一一移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我正在使用C#运行Dotnet Windows应用程序.

我对listview控件有一点怀疑

我有一个listview控件和一个按钮(名称为Play)控件,Listview包含10个项目,当我单击播放"按钮时,listview的第一个项目将被选择,并且listview的选择将一个一个地向上移动10个项目.然后它将再次循环从第一个项目开始. (例如Mp3播放器列表文件)

朋友们给我一些想法来完成我的任务

问候,
Vasanth

Dear friends,

I am working Dotnet windows Application using C#.

I have small doubt of listview control

I have one listview control and button (name Play) control, Listview contains 10 items, when i click the Play button, the listview first item will select and selection of listview will move one by one upto 10 items. Then it will loop again start from first item. (Like Mp3 player listfiles)

Friends give some ideas to finish my task

Regards,
Vasanth

推荐答案

如果尚未启动任务,如何完成任务?如果要向上移动一项,则只需删除要删除的项,然后将其插入到所需位置即可.问题出在哪里?
How can you finish your task if you''ve not started it ? If you want to move the items up by one, then you just remove the one you want to remove, and insert it where you want it. Where is the issue ?


这篇关于列表视图选择的索引将一一移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆