将listView子项添加到RichTextBox的问题 [英] Problem with add listView Sub Items to RichTextBox

查看:100
本文介绍了将listView子项添加到RichTextBox的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序中你好
我将ListView SubItems添加到RichTextBox并且它没有2个SubItems的问题但超过2它给我一个错误

这是我的问题 [ ^ ]

我该怎么办?

尊重

Hi in my program i add ListView SubItems to RichTextBox and it doesn't have problem for 2 SubItems but more than 2 it give me an error
This is My Problem[^]
What should i do?
With Respect

推荐答案

在'foreach循环中'for循环'用item.SubItems.Count替换slv.Items.Count
In the 'for loop in the 'foreach loop replace slv.Items.Count with item.SubItems.Count


这篇关于将listView子项添加到RichTextBox的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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