正在保存过程中保存动画 [英] Save animation during saving is in progress

查看:108
本文介绍了正在保存过程中保存动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个需要花费很长时间才能保存数据的应用程序,因为它必须通过Intranet进行写入.
我想运行一个动画,显示正在保存.怎么做?
有代码示例吗?

谢谢
Furqan

Hi,
I have an application that takes quite long to save the data as it has to write over intranet.
I want to run an animation showing that saving is in progress. How to do it?
Any code examples?

Thanks
Furqan

推荐答案

您可以通过不同的方式进行操作:

-使用其他线程放置进度条,并使其以它所代表的流的方式进行反应
变化.

-在特殊控件中使用某种动画...

强大的方法是获得一个不同的线程,因为它可以使您做更多的事情并表示真实的值(即,如果您正在执行的过程是50%,则进度条可以是50%...). br/>
看看前段时间在CP中发布的这个问题:
祝你好运!

PS:阅读完所有这些文章后,您将可以尝试很多事情,然后再提出具体问题,我们将为您提供更多指导! :thumbsup:
You can do it in different ways:

- Using a different thread to put a progress bar and making it to react as the flow that it represents
changes.

- Using some kind of animation in a special control...

The powerful way is to get a different thread as it will allow you to make more things and to represent real values (i.e. if the process you are making is at 50% you can have the progress bar at 50%...).

Take a look at this question posted some time ago here in CP: help on Progress Dialog Box in VB.NET[^].

Searching for "progress save vb.net" in google will give you lots of results...

Good luck!

PS: After reading all those posts, you will be able to try lots of things, then come back with specific problems and we will be able to give you more pointers! :thumbsup:


正确的解决方案肯定是在单独的线程中进行此长时间的操作.甚至不要玩不使用一个的想法.

在我过去的答案中,您可以找到关于该主题的所有建议:
Control.Invoke()与Control.BeginInvoke() [ ^ ],
Treeview Scanner和MD5的问题 [如何获取keydown事件在vb.net中的不同线程上操作 [启用禁用+多线程后控件事件不会触发 [ ^ ].

—SA
The right solution is certainly making this long operation in a separate thread. Don''t even play with the idea of not using one.

You can find all advices you need on the topic in my past answers:
Control.Invoke() vs. Control.BeginInvoke()[^],
Problem with Treeview Scanner And MD5[^].

This is a collection of links to my past answers on the topic, some more details:
How to get a keydown event to operate on a different thread in vb.net[^],
Control events not firing after enable disable + multithreading[^].

—SA


这篇关于正在保存过程中保存动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆