上传文件 - 进度条?
我正在尝试将文件从本地计算机上传到服务器,并且我正在使用以下几行代码:
My.Computer.Network.UploadFile("C:\Temp\test.mp3", "192.168.1.2\test", "", "", True, 500)
这正是这样做的,并且上面字符串中的“True”在其自己的窗口中显示了一个进度条。我希望该进度条以与其他控件相同的形式显示。而且不在它自己的窗口中。有办法做到这一点吗?
I'm trying out uploading of files from local computer to a server and I'm using these few lines of code:
My.Computer.Network.UploadFile("C:\Temp\test.mp3", "192.168.1.2\test", "", "", True, 500)
This does exactly that and the "True" in the above string shows a progressbar in its own window. I would like for that progressbar to display on the same form as the rest of controls are. And not in it's own window. Is there a way of doing just that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
My.Computer.Network.UploadFile 似乎不可能。如果你真的想这样做,也许可以获取对话框上进度条的 hWnd,但这有点令人讨厌。
It seems like it is not possible with My.Computer.Network.UploadFile. If you really want to do it maybe get the hWnd of the progressbar on the dialog but thats kind of nasty.