» »

[Visual Basic] treeview

[Visual Basic] treeview

Guti ::

Zdravo,


Mene bi zanimalo, če bi mi znal kdo pomagati.
Rad bi naredil raziskovalec,
pa nevem kako bi v Treeview-u naredil
da bi videl diske(c,d,..), datoteke, ... itd

Hvala
Take me down to the paradise city
Where the grass is green
And the girls are pretty

Hardstyle ::

v Visual basicu pa je to res enostavno:


Dodaš DriveListBox in DirListBox ter FileListBox

Koda za DriveListBox
Private Sub Drive1_Change()
    Dir1.Path = Drive1.Drive
End Sub

Koda za DirListBox
Private Sub Dir1_Change()
    File1.Path = Dir1.Path
    File1.Pattern = ("*.txt;*.doc")  'ta ti pokaže samo textovne datoteke
End Sub

Koda za FileListBox
Private Sub File1_Click()

    If Right(File1.Path, 1) <> "\" Then
    ImeDatoteke = File1.Path + "\" + File1.FileName
    Else: ImeDatoteke = File1.Path + File1.FileName
    End If
    
End Sub

Zgodovina sprememb…

Guti ::

Ja sej to znam samo to potem mam tri liste
pa v prvi zbiras disk v drugi datoteke v tretji pa še fajle.
Jaz pa bi rad naredil isto kot explorer da je vse v eni listi.
Take me down to the paradise city
Where the grass is green
And the girls are pretty

darkolord ::



Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

rabib vba kodo za shranjevanje v bin (iz excella)

Oddelek: Programiranje
7894 (676) Silikon
»

[c#] savefiledialog, en sfd a več datotek

Oddelek: Programiranje
8765 (693) darkkk
»

[c#] shrani text, tabele, slike

Oddelek: Programiranje
251539 (1145) klemen93
»

Excel IF in macro

Oddelek: Programiranje
101322 (1194) snow
»

[VB] brisanje polne mape

Oddelek: Programiranje
5799 (726) jishiri

Več podobnih tem