should be an event UploadCompleted,
so you would wait for this event.
UploadFile (DeviceFolder As String, DeviceFile As String, ServerFilePath As String)
Uploads a file to the server. The UploadCompleted event will be raised when upload completes.
UploadProgress events will be raised during the upload.
DeviceFolder - Local folder.
DeviceFile - Local file name.
ServerFilePath - Full path to file that will be created on the server.
you can use the TAB key to enter the library events as if you were creating a new sub. anyway it is exactly the same parameters (you can change names of them) as a regular sub