上传文件 - 进度条?

发布于 2024-08-09 00:13:14 字数 250 浏览 2 评论 0原文

我正在尝试将文件从本地计算机上传到服务器,并且我正在使用以下几行代码:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

难理解 2024-08-16 00:13:14

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文