|
-
Mar 1st, 2005, 12:06 AM
#1
Thread Starter
Hyperactive Member
Object from Kazaa Lite (HARD) [SOLVED]
I just was wondering...on kazaa lite, if you go to My Kazaa Lite K++ which is basicall my shared documents. It shows all the files in the directory.
What i need to know is, what it actually shows them in...the VB equivelant

and how to list them.
Last edited by boku; Mar 10th, 2005 at 06:08 PM.
-
Mar 1st, 2005, 02:26 AM
#2
Re: Object from Kazaa Lite (HARD)
You could load them into a flexgrid, or you could pick them from a common dialog control. It depends what you want to do with them The flexgrid is the most customizable, but a listview might also be in order.
-
Mar 2nd, 2005, 10:49 AM
#3
Thread Starter
Hyperactive Member
Re: Object from Kazaa Lite (HARD)
Well what i want it to do is list all the files in a directory, tell me the file name, size and if possible the type of file it is e.g Application, Picture etc. and i want it to refresh every 15 minutes, incase new files have been added to the directory.
-
Mar 2nd, 2005, 01:51 PM
#4
Re: Object from Kazaa Lite (HARD)
Use the File System Objsect control. While it won't parse the mp3 infor, it will give you date and size info. With a little more work, you could get the type of file.
-
Mar 7th, 2005, 02:09 PM
#5
Thread Starter
Hyperactive Member
Re: Object from Kazaa Lite (HARD)
i cannot seem to find the File System Object control
-
Mar 7th, 2005, 04:32 PM
#6
Re: Object from Kazaa Lite (HARD)
Add a reference to:
- Microsoft Scripting Runtime (scrrun.dll)
-
Mar 7th, 2005, 10:02 PM
#7
Re: Object from Kazaa Lite (HARD)
 Originally Posted by boku
What i need to know is, what it actually shows them in...the VB equivelant
You can duplicate Kazaa's user interface by using the ListView control. You can add it to your project by clicking -
Project > Components > Controls tab > checking "MS Windows Common Controls 6.0"
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 
-
Mar 8th, 2005, 11:19 AM
#8
Thread Starter
Hyperactive Member
Re: Object from Kazaa Lite (HARD)
Yeah thats kool i got that now. Your gna think im a dumbass, but how do i use it lol, all i got is the column titles and how to add files:
VB Code:
Dim sharedfilesdir As String
sharedfilesdir = Dir(lblSharedFiles.Caption & "\*.*")
While sharedfilesdir <> ""
ListView1.ListItems.Add , , sharedfilesdir
sharedfilesdir = Dir()
Wend
But what i want now is how to get the type of file under the correct column and the files size.
Last edited by boku; Mar 8th, 2005 at 12:01 PM.
-
Mar 8th, 2005, 12:23 PM
#9
Re: Object from Kazaa Lite (HARD)
Here is how you use the listview control.
VB Code:
Option Explicit
Private Sub Form_Load()
Dim i As Integer
Dim itmLV As ListItem
ListView1.FullRowSelect = True
ListView1.GridLines = False
ListView1.HideSelection = False
ListView1.HoverSelection = False
ListView1.LabelEdit = lvwManual
ListView1.MultiSelect = False
ListView1.View = lvwReport
For i = 1 To 5
ListView1.ColumnHeaders.Add , , "Col " & i, (ListView1.Width / 5) - 70
Next
For i = 1 To 25
Set itmLV = ListView1.ListItems.Add(, , "Item " & i)
itmLV.SubItems(1) = "Sub 2"
itmLV.SubItems(2) = "Sub 3"
itmLV.SubItems(3) = "Sub 4"
itmLV.SubItems(4) = "Sub 5"
Set itmLV = Nothing
Next
End Sub
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 
-
Mar 8th, 2005, 12:32 PM
#10
Thread Starter
Hyperactive Member
Re: Object from Kazaa Lite (HARD)
OK thnx but how do i click on a single file and have the properties that you see when you right click a file appear in a textbox?
-
Mar 8th, 2005, 01:05 PM
#11
Re: Object from Kazaa Lite (HARD)
If your using the FSO object then you can just add a few 0 width lvw colums and add the file properties from
the FSO for the file when your loading the lvw. Then when you select a listview item you can take
the hidden columns text and place it in a textbox.
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 
-
Mar 8th, 2005, 01:29 PM
#12
Thread Starter
Hyperactive Member
Re: Object from Kazaa Lite (HARD)
Ok i dont know what FSO is but i dont think im using it. Could you be more precise?
I have a listview object (in report view) and a text box (which is multiline)
In the list view i have the headers "Title", "Size" and "Type". Only title is done so far.
BUT when i click on the file in the listview object i would like the rest of the file properties to come up like, "Year", "Artist", "Bitrate" etc.
-
Mar 8th, 2005, 03:44 PM
#13
Re: Object from Kazaa Lite (HARD)
You should have columns for each of these and load them when the lvw is loaded.
FSO = File System Object, from the scripting reference posted earlier.
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
|