从数据库读取时加载标志 [英] Loading sign while reading from database

查看:104
本文介绍了从数据库读取时加载标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个在sql数据库上执行查询的应用程序.查询花费了将近一分钟的时间.我需要某种指示来显示其加载,选框进度栏,甚至显示正在加载.."的标签.

我想我需要使用另一个线程,但是我以前从未使用过,并且不确定如何使用.

有人可以帮忙吗?

Hi everyone,

I have an application that perform a query on a sql database. The query takes quiet a while almost a minute. I need an some kind of indication that shows its loading, marquee progress bar or even a label that says " loading..".

I think i need to use another thread, but I''ve never used one before and im not sure how.

Can anyone help please?

推荐答案

看看 ^ ].它使您可以在后台执行任务,而无需锁定GUI .

对于您遇到的问题,这是一个很好的解决方案.
祝你好运!
Take a look at this article[^] about Tasks. It allows you to perform tasks in the background without having your GUI locked.

It''s a great solution for the problem you have right here.
Good luck!


这篇关于从数据库读取时加载标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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