|
-
Sep 22nd, 2007, 04:45 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] How to sent Listview column header to listbox
I would like to know, I have listview column header, how I can sent this column header to the listbox, because I want only selected column header in the listbox to print out on the document.Have idea or sample to start?
-
Sep 22nd, 2007, 05:01 AM
#2
Re: How to sent Listview column header to listbox
I hope the same answer to your other thread would solve this too...anyway here it is
vb Code:
List1.AddItem Form5.ListView2.ColumnHeaders(1).Text
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Sep 22nd, 2007, 05:08 AM
#3
Thread Starter
Frenzied Member
Re: How to sent Listview column header to listbox
It work, But how I can get all listview column header without specific the number to the listbox?
Code:
List1.AddItem Form5.ListView2.ColumnHeaders(1).Text
-
Sep 22nd, 2007, 05:11 AM
#4
Re: How to sent Listview column header to listbox
vb Code:
For i = 1 To ListView2.ColumnHeaders.Count - 1
List1.AddItem ListView2.ColumnHeaders(i).Text
Next
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Sep 22nd, 2007, 05:17 AM
#5
Thread Starter
Frenzied Member
Re: How to sent Listview column header to listbox
In my listbox, I found that you miss one field name at the end of the listview, so I modify to this, and it works contains all listview column header. Thank you. I rate you
Code:
For i = 1 To Form5.ListView2.ColumnHeaders.Count
List1.AddItem Form5.ListView2.ColumnHeaders(i).Text
Next i
-
Sep 22nd, 2007, 01:00 PM
#6
Re: [RESOLVED] How to sent Listview column header to listbox
 Originally Posted by matrik02
In my listbox, I found that you miss one field name at the end of the listview, so I modify to this, and it works contains all listview column header
OH sorry for that...
 Originally Posted by matrik02
I rate you
Thank you
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
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
|