选择项目时清除Listview ......... [英] Clear Listview while choose the item............

查看:84
本文介绍了选择项目时清除Listview .........的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做以下工作:

表单设计

名称--------(文本框)

添加(按钮)


具有一个字段名称"的列表视图

当我在文本框中输入文本后单击ENTER键时,该文本要添加到列表视图中.

列表如下:


名称

普尼
Punitha
萨巴里(Sabari)


当我从列表视图中选择名称时,该项目要显示在文本框中并进行编辑并替换列表视图...

你能帮忙吗........

i''m want to do the follwing work:

Form Design

Name --------(textbox)

ADD (button)


List view with one field "Name "

When i click ENTER key after enter the text in the textbox, the text want to add in the list view.

Lists are Below:


Name

puni
Punitha
Sabari


When i choose the name from the list view, the item want to displayed in the textbox and make edit and replace the list view...

Can u help........

推荐答案


浏览链接-

http://social.msdn.microsoft.com/论坛/en-US/vblanguage/thread/770cf727-0f5b-4047-85dd-faf31bdf3db4 [ http://social.msdn.microsoft.com /Forums/zh-CN/winformsdatacontrols/thread/20949731-4255-4b64-bf10-e4a6e9afc6d4/ [
Hi,
Go through the links-

http://social.msdn.microsoft.com/forums/en-US/vblanguage/thread/770cf727-0f5b-4047-85dd-faf31bdf3db4[^]
http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/20949731-4255-4b64-bf10-e4a6e9afc6d4/[^]



试试这个...

ListView1.Items.Remove(ListView1.SelectedItems(0))

希望这会有所帮助!
Hi,
try this...

ListView1.Items.Remove(ListView1.SelectedItems(0))

Hope this helps!


这篇关于选择项目时清除Listview .........的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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