如何在Winform上显示处理标签或图像? [英] How can I show processing label or image on Winform?

查看:151
本文介绍了如何在Winform上显示处理标签或图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨人。我想知道如何在Winform表单上显示处理标签或图标?我创建了一个连接到远程数据库的登录表单并检查身份验证。虽然它正在验证用户信息,但它等待2-3秒,因为RFC。在那2-3秒我想向用户显示它正在处理表单上的身份验证或处理图标。我怎样才能做到这一点?我应该使用后台工作者还是有其他方法可以做到这一点?

最好的问候

Hi People . I am wondering that how can I show processing label or icon on my Winform Form ? I have created a Login Form that connects to remote DB and check for Authentication . While it is validating user informations it waits like 2-3 seconds because RFC . In that 2-3 seconds I want to show to user "it is processing for Authentication or processing icon on the form". How can I do that? should I use background worker or is there any other way to do that ?
Best Regards

推荐答案

试试

在执行代码时显示动画gif [ ^ ]

C#中的动画进度指示器(Windows窗体) [ ^ ]

显示动画gif图像wh ile后台处理发生了 [ ^ ]
Try
Displaying animated gif while code is being executed[^]
Animated Progress Indicator in C# (Windows Forms)[^]
Display animated gif image while the background processing happens[^]


这篇关于如何在Winform上显示处理标签或图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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