Skip to content
View in the app

A better way to browse. Learn more.

Komuniti @PuTeRA

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

macam mane nak refresh filelistbox;vb6

Featured Replies

salam,

kat bawah nie ialah satu sistem utuk copy files dari local folder ke shared folder.mcm mane nak refresh filelistbox tu so that setiap kali aku copy certain file ke shared folder,ia kan refresh kat filelistbox.Contohnya lau aku copy file 'a' dari drive c aku ke shared folder bernama zmyxxxxx,after copying,aku nak makesure dalam filelistbox tu , file 'a' tak wujud lagi dah.so takdelah kes user terselect file yg same lagi dah

Private Sub cmdCpy_Click()

Dim path As String
Dim topath As String
Dim File As String
Dim directory As String

On Error GoTo err_handler:

directory = txtdest.Text
File = FileListBox.FileName
path = DirListbox + "\" + File
topath = directory + "\" + File

If txtdest.Text <> "" Then
FileCopy path, topath



MsgBox " file succesfully copied"

Else
MsgBox "please specify target destination"

End If

Kill path
Exit Sub
err_handler:
MsgBox ("Failed. " & Error)
End Sub

Private Sub DirListbox_Change()
FileListBox.path = DirListbox.path
End Sub

Private Sub DriveListBox_Change()
Dim msg As String
Dim result As String

On Error GoTo Error
DirListbox.path = DriveListBox.Drive
Exit Sub

Error: msg = "Error: " & Err.Number & ": " & Err.Description
result = MsgBox(msg, vbOKCancel + vbExclamation, "No Data")

If result = vbOK Then
Resume
Else
DriveListBox.Drive = DirListbox.path
Err.Clear
Exit Sub
End If

End Sub

Private Sub FileListBox_Click()


lblFile.Caption = FileListBox.FileName
End Sub

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.