|
-
Jul 26th, 2002, 05:43 AM
#1
Thread Starter
Member
Listview is not working
I have used the Columns.Add method for add columns to a ListView control and the third parameter of this method is for setting horizontal alignment. The column is added to control but horizontal alignment is always right, also when i choose anohter aligment.
Anyone knows the reason ?
-
Jul 26th, 2002, 07:25 AM
#2
Lively Member
The first column header item in the listview <Parent> is always left alignment, not sure why they wont let us change it but any column header subitem's i'm able to get them to be either left, center or right alignment.
-
Mar 6th, 2005, 10:15 AM
#3
Lively Member
Re: Listview is not working
Is this still the case? Has anyone found a solution in the last couple of years
-
Mar 6th, 2005, 12:15 PM
#4
Re: Listview is not working
Create a "fake" column 1 with 0 width, hidden from the users view. Then your column 2 will appear
to be the first column to the user and you can align it as you want. Populate your lv starting
at column 2+
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|