Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListView - No Header

Status
Not open for further replies.

Putterman

Programmer
May 16, 2008
2
US
All,

I am using a ListView box to display a special "ToolTip" so I can have different color text in multiple lines. I have everything working, but I would rather the ListView did not have a column header.

If I remove the "ListView2.ColumnHeaders.Add" statement from my code, no data is displayed at all.

Is there a way to create a ListView with just one Column and No Column Header?

Thanks
 
You can use something like:
Dim mrow
ListView1.HideColumnHeaders = True
ListView1.ColumnHeaders.Add
ListView1.View = lvwReport
Set mrow = ListView1.ListItems.Add(, , "ABC")
Set mrow = ListView1.ListItems.Add(, , "1234")

or

just set HideColumnHeaders on in the (Custom) viewer
 
Bill,

HideColumnHeaders was perfect.

Thank you,

Hal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top