Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2007

Tip: Looking for answers? Try searching our database.

ListView - one column

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MihaiT - 26 Sep 2007 12:56 GMT
Hi everybody,

I want to have a ListView which has only one column and all the items have
the width of the listview (that is, no room fro subitems since i don't need
them).

It may sound like a ListBox, but I need to have ListViewItems and not
objects in the control.

Thanks in advance,

Signature

Mihai Tătăran
H.P.C. Consulting
www.hpc-consulting.ro

Juanma Mtnez - 26 Sep 2007 22:59 GMT
Always keeping your ListView View property set to Details, make sure that the
only ColumnHeader in Columns collection has its Width property set to the
ListView's width property.  You can do it handling Paint events.

I think this is what you were asking.

> Hi everybody,
>
[quoted text clipped - 6 lines]
>
> Thanks in advance,
MihaiT - 27 Sep 2007 07:03 GMT
Thank you. It works.

> Always keeping your ListView View property set to Details, make sure that the
> only ColumnHeader in Columns collection has its Width property set to the
[quoted text clipped - 12 lines]
> >
> > Thanks in advance,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.