添加按钮到的WinForms列表视图 [英] Adding button into a Listview in WinForms

查看:162
本文介绍了添加按钮到的WinForms列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法给一个按钮控制在WinForms应用程序添加到单元格一个ListView里面呢?

Is there a way to add a button control to a cell in inside a ListView in a WinForms app?

推荐答案

ListView控件本身(或ListViewItem的)不作为任何所以没办法直接添加控件的容器,但它是可行的。我已经使用这个扩展的ListView有很多成功的:在ListView 嵌入控制

The ListView itself (or ListViewItem) does not function as a container of any kind so no way to add controls directly, however it is doable. I have used this extended ListView with a lot of success: Embedding Controls in a ListView.

这篇关于添加按钮到的WinForms列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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