| Visual Basic - Objects - Controls - File ListBox |
| Properties | Methods | Events | Functions |
|
|
File ListBox - Properties
| FileName | Path |
s = File1.FileName 's = "Cirkler.bmp" |
s = File1.Path 's = "C:\Windows" |
File ListBox - Events
| Click |
Private Sub File1_Click() p = FullPath(File1) Image1.Picture = LoadPicture(p) End Sub |
File ListBox - Functions
| FullPath |
FP = File1.Path & File1.FileName |
FP = "C:\" & "log.txt" |
| - else, the full path is: | |
| FP = File1.Path & "\" & File1.FileName | FP = "C:\Windows" & "\" & "log.txt" |
Function FullPath(F As FileListBox) As String Dim p As String p = F.Path If Right(p, 1) <> "\" Then p = p & "\" FullPath = p & F.filename End Function |