1

SQL Server に接続してクエリを送信するのは非常に簡単です。しかし、それを Progress Bars と関連付ける方法を知りたいです。

つまり、クエリが実行されているとき、バーは進行しています...

4

1 に答える 1

0

For example you know number of your query. Before all of that, you set maximum and minimum of ProgressRing.

ProgressRing.Maximum = 100;
ProgressRing.Minimum = 0;

and before the loop you define a counter type of int. in the loop that you need code like this

ring.Value = (100 * counter) / query.Count;
于 2013-09-19T19:28:20.640 に答える