编译到exe后,在listview上Diplaying组 [英] Diplaying groups on listview after compiled to exe

查看:66
本文介绍了编译到exe后,在listview上Diplaying组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好......这是一个有趣的问题,我无法解决这个问题,我正在编写一个程序来自文本doc和列入列表视图的项目,但是在编译和运行新的之后创建可执行文件,具有列表视图的表单不显示组...但是如果我把它放在一个包含Visual Studio中所有相关组件的表单中它可以工作...



我修改了它并尝试了这个,(它在表单加载事件的文本文件中)



Hi guys ... Here's a funny question and I am not able to get a work around on it, I am compiling a program from a text doc and items that get listed into a list view but after compiling and running the newly created executable, the form that has the list view does not display the groups...But if I put this an a form with all related components inside of visual studio it works...

I have tinkered with it and tried this, (It's in the text file on the forms load event)

    lvConfig.ShowGroups = True
    Dim lvgroup As New ListViewGroup("Installation Directory")
    Dim item As New ListViewItem(lvgroup)
    item.Text = "Some Text"
lvConfig.Groups.Add(lvgroup)
    lvConfig.Items.Add(item)





我必须说应用程序正确编译没有错误....我很难过。



I must say the application compiles correctly without errors.... I am stumped.

推荐答案

伙计们......男孩我觉得愚蠢......我忘记或忽略了将这个小字符串添加到主入口点文本文档...



Hi again guys... Boy do I feel dumb... I forgot or neglected to add this little string to the main entry point in the text doc...

Application.EnableVisualStyles()


这篇关于编译到exe后,在listview上Diplaying组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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