Okay
![Smile :)](images/smilies/icon_e_smile.gif)
Here is how i got a multiplatform solution to showing all drives on the computer
- Code: Select all
'Remove all sample listings for combobox
cmbDrives.removeAll
'Append a User Documents Listing (Just for my Program - the code is in another function but to get this type dir.homepath)
cmbDrives.append ("folder.png", "User Documents")
'Get the drives list as strings from the folowing command
Dim Drives As Strings = Dir.Drives()
'Dir.drives lists the drives from the computer and saves them as a string array
' the code below goes through each drive and adds them to the combobox with a picture to make the combobox look nice.
For Each HDD As String in Drives
cmbDrives.append ("mac_hdd_icon.png", HDD)
Next
I found this code in the help menu of kbasic (I have obviously modified it a bit for my program) I hope its of help to others.
Also btw, would anyone like to be an Alpha tester for my application... it's called Codie and is a basic HTML editor with Web preview. If you do when i release the alpha tonight., i'll post the link.. It will be released under the GPL when ready.