在ListView中自动滚动 [英] autoscrolling in ListView

查看:69
本文介绍了在ListView中自动滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..

我已经使用listview和其他控件开发了类似于VS2010(安装过程中)的流程向导.
现在我需要在完成其处理过程时向上滚动每个项目...(例如,电影完成后标题会滚动).
任何codeSamples或Anyideas ...请提供帮助

在此先谢谢您..

Hi EveryOne..

I have developed a process wizard similar to that of VS2010 (during installation) using listview and some other controls.
now i need the each item to scrolled up when ever the its process is completed ...(i.e some thing like the titles scrolls after the film completion).
Any codeSamples or Anyideas... pls helpme out

Thanks in Advance..

推荐答案

listview对象具有一个EnsureVisible(i)方法,该方法可以滚动到您想要的项目的索引(i),就像您猜到的那样,请确保可见,如果需要,请滚动.

这么简单的通话;


listview1.EnsureVisible(i);
The listview object has an EnsureVisible(i) method that scrolls to the index (i) of the item you want to, as you guessed, ensure is visible, scrolling if required.

so simple call;


listview1.EnsureVisible(i);


这篇关于在ListView中自动滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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