[已解决] c#从所选列表视图中删除附件 [英] [Solved] c# remove attachment from selected listview

查看:78
本文介绍了[已解决] c#从所选列表视图中删除附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

首先,我是荷兰人,对您的错字感到抱歉.

好吧,我的问题是我在c#中有一个电子邮件客户端.
现在工作正常.我可以根据需要添加附件或3或7个附件.
现在,我有了一个列表视图,其中显示了所选的附件.通过测试,他发送了列表视图中显示的所有附件.
现在,我想根据项目的选定列表视图项目删除某些附件.

我该怎么办?

更新:
OP自己解决了问题,并发布了答案之一.

Hello everyone,

First I''am dutch so sorry for any typo.

Alright my question is that I have a email client in c#.
now it works fine. I can add a attachments or 3 or 7 attachments according to the needs.
Now I have a listview which shows the attachment chosen. And with the test it works he sends all the attachment shown in the listview.
Now I want delete certain attachments according to the selected listview item of items.

how can I do that?

UPDATE:
OP resolved it by himself and has posted an one of the answers.

推荐答案

我找到了解决方案.

当我单击发送时,我让程序检查列表视图中有多少个附件.

因此,我唯一需要做的就是从列表视图中添加和删除列表项.
I have found my solution.

I let the program check how many attachment there are in the listview when i click send.

So only thing i have to do is add en remove listitems from my listview.


这篇关于[已解决] c#从所选列表视图中删除附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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