调整窗体大小时,滚动条移至所选内容. [英] Scroll bar moving to the selection when the form resizes.

查看:81
本文介绍了调整窗体大小时,滚动条移至所选内容.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我的滚动条有问题.在包含图标和滚动条的Listview中.
当我们选择listView底部的图标,然后调整listView的大小时.
滚动条移到顶部.我想限制移动到顶部.它应该在列表中显示焦点图标.
有人可以帮我吗?...

问候,
Harish Reddy

Hi Friends,

I have a problem with the scroll bars. In a Listview containing the icons and scroll bars are also there.
When we select the icon at the bottom of the listView and then resizing the listView.
the scrollbar moves to top. I want to restrict to move to top. it should show the focused icon in the list.
can anybody help me....

Regards,
Harish Reddy

推荐答案

列表框上有一个名为
的方法
There is a method on the listbox called
ScrollIntoView(Object item)



只需在调整列表框大小后使用Listbox.SelectedItem



Just call this after the listbox has resized, with the Listbox.SelectedItem


这篇关于调整窗体大小时,滚动条移至所选内容.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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