TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
williamsp2
NA
1
0
ListView Columns Problem
Jul 23 2004 11:27 AM
I have a ListView without any columns on my form that was created with the designer. I dynamically add the columns to the ListView with a width of -1. If I add them in the MainForm() function, everything works ok. But if I move them to another function that is called based on an event, the width stays at 0 even though I have told it -1. I also add the data to the ListView in the respective functions. I use ListView::BeginUpdate() and ListView::EndUpdate(). It is the identical code, I just copied and pasted from one location to the other. What am I doing wrong? Any help is appriciated.
Reply
Answers (
0
)
Shaped Windows Forms and Controls in C# .NET
info dialog over system tray