Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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)

VB
    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.
Posted

1 solution

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()
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900