选中列表框? [英] Checked Listbox?

查看:93
本文介绍了选中列表框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。


我要求我的某个程序有一个Checked Listbox

包含我所有本地/远程驱动器的列表。


我喜欢用户点击我需要搜索的一个或多个驱动器

特定文件。


有人能告诉我如何使用VB或C#在.NET 2.0中实现这个吗?


我还需要知道如何通过列表框进行迭代以确定选择了哪些项目

并提取其中的值属性。


谢谢 -

解决方案

" dm1608" < DM **** @ spam.net> schrieb:

我要求我的一个程序有一个Checked Listbox
,其中包含我所有本地/远程驱动器的列表。




查看CheckedListBox控件。


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://classicvb.org/petition/>


选中列表框控件或列表视图控件并启用复选框


" dm1608" < DM **** @ spam.net>在消息中写道

新闻:在************** @ TK2MSFTNGP03.phx.gbl ...

全部。

我要求我的一个程序有一个Checked Listbox
,其中包含我所有本地/远程驱动器的列表。

我woudl像用户点击我需要搜索特定文件的一个或多个驱动器。

任何人都可以告诉我如何使用VB或C#在.NET 2.0中实现它?

我还需要知道如何通过列表框进行迭代以确定选择了哪些项目并提取其中的值属性。

谢谢 -


我会使用FileOpenDialog而不是列表框,它允许用户钻取

并准确选择他们想要的节省时间。


....你怎么能列出远程驱动器,如果你的意思是映射的驱动器是'/ b
事情,但除此之外,你怎么知道博士ives可用 -

FileOpenDialog允许用户在另一台机器上选择一个驱动器

,否则你的应用程序将不知道。


我认为你正在重新发明轮子。

我要求我的一个程序有一个Checked Listbox。
包含我所有本地/远程驱动器的列表。

我喜欢用户点击我需要搜索特定文件的一个或多个驱动器。



Hi, all.

I have a requirement for one of my programs to have a "Checked Listbox" that
contains a list of all my local/remote drives.

I woudl like users to click one or more drives that I need to search for
particular files.

Can anyone tell me how to implement this in .NET 2.0 using VB or C#?

I also need to know how to iterate thru the listbox to determine what items
are selected and extract there value property.

Thank you --

解决方案

"dm1608" <dm****@spam.net> schrieb:

I have a requirement for one of my programs to have a "Checked Listbox"
that contains a list of all my local/remote drives.



Check out the CheckedListBox control.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


checked list box control or listview control with checkboxes enabled

"dm1608" <dm****@spam.net> wrote in message
news:On**************@TK2MSFTNGP03.phx.gbl...

Hi, all.

I have a requirement for one of my programs to have a "Checked Listbox"
that contains a list of all my local/remote drives.

I woudl like users to click one or more drives that I need to search for
particular files.

Can anyone tell me how to implement this in .NET 2.0 using VB or C#?

I also need to know how to iterate thru the listbox to determine what
items are selected and extract there value property.

Thank you --



I''d use a FileOpenDialog rather than a list box, it allows the user to drill
down and select exactly what they want, saving them time.

.... and how could you list "remote drives", if you mean mapped drives that''s
one thing, but otherwise how can you know what drives are available -- the
FileOpenDialog would allow the user to select a drive on another machine
which your application wouldn''t know about otherwise.

I think you''re reinventing the wheel.

I have a requirement for one of my programs to have a "Checked Listbox" that
contains a list of all my local/remote drives.

I woudl like users to click one or more drives that I need to search for
particular files.




这篇关于选中列表框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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