ListView - 查找/设置所选项目 [英] ListView - Finding/Setting The selected Item

查看:78
本文介绍了ListView - 查找/设置所选项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。


当你使用ListView1.Item(0).Selected = true时,这个项目将显示为

显示为int的项目ListView1.SelectedItems集合,但项目

未在控件中突出显示。如何突出显示项目和

如何识别突出显示的特定元素?


预先感谢您的帮助!!!!! !!!


----- =通过Newsfeeds.Com发布,未经审查的Usenet新闻= -----
http://www.newsfeeds.com - 世界排名第一的新闻组服务!

----- ==超过100,000个新闻组 - 19个不同的服务器! = -----

Hello.

When you use the ListView1.Item(0).Selected = true, this addis the item to
items which show up int the ListView1.SelectedItems collection, but the item
is not highlighted in the control. How to you get the item highlighted and
how to you identify the specific element which is highlighted?

Thanks in advance for your assistance!!!!!!!!


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----

推荐答案

Jim,

我想你想把hideselection属性设置为false,但是如果您想要,请先阅读

文件吗?

Cor
Jim,
I think you want to set the hideselection property to false, but please read
the documentation first if it is want you want?
Cor


此属性保留一种形式在另一个控件获得焦点之后突出显示

(问题的第一部分!),但是如何识别

控件中的哪个项目在您离开后突出显示,或者那个问题是在

控制本身内吗?


" Cor" < no*@non.com>在消息中写道

news:3f *********************** @ reader21.wxs.nl ...
This property retains a form of highlighting after another control gets focus
(first part of my question!), but how how do you identify which item in the
control is highlighted after you leave, or for that matter are within the
control itself?

"Cor" <no*@non.com> wrote in message
news:3f***********************@reader21.wxs.nl...
Jim,
我认为您想将hideselection属性设置为false,但如果您想要它,请先阅读文档吗?
Cor
Jim,
I think you want to set the hideselection property to false, but please read
the documentation first if it is want you want?
Cor




----- =通过Newsfeeds.Com发布,未经审查的Usenet新闻= -----
http://www.newsfeeds.com - 世界排名第一的新闻组服务!

----- ==超过100,000个新闻组 - 19个不同的服务器! = -----




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----


你好,


" Jim Heavey" <籍******* @ hotmail.com> schrieb:
Hello,

"Jim Heavey" <Ji*******@hotmail.com> schrieb:
当你使用ListView1.Item(0).Selected = true,
这个项目将添加到ListView1中显示的项目。
SelectedItems集合,但是该项目未在控件中突出显示
。如何突出显示项目和
如何识别突出显示的特定元素?
When you use the ListView1.Item(0).Selected = true,
this addis the item to items which show up int the ListView1.
SelectedItems collection, but the item is not highlighted
in the control. How to you get the item highlighted and
how to you identify the specific element which is highlighted?




查看以下文档:


ListViewItem.Focused

ListView.HideSelection

ListView.FocusedItem


HTH,

Herfried K. Wagner

-

MVP·VB Classic,VB .NET
http://www.mvps.org/dotnet


这篇关于ListView - 查找/设置所选项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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