'you can do this on the designer and delete this line.īackgroundWorker1.WorkerReportsProgress = True 'make sure you set this so the progress will change. Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If you set the BuildAction to content and Copy To Output to Copy if Newer the file will be located in the application directory.Īt any rate copying a file showing a progress will look something like below. If you set it as an embedded resource the file will be part of the. Then you could get a FileStream with Dim FileStream as New IO.FileStream("Test.txt", IO.FileMode.Open) You could also add a file to your project and set its Build Action to Content and Copy to Output Directory to Copy If Newer. The below example shows how to get a stream from the embedded resource. You can leave the Copy to output directory to Do Not Copy. To do: Add a file to the project and set its BuildAction to Embedded Resource. You can add the file as an embedded resource. I don't know how to get a stream from my.resources but I do know a couple of things. To show progress you will need to get streams and read and write to them so you can tell how many bytes have been written.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |