progress-bar

Black screen while AsyncTask is running

梦想的初衷 提交于 2019-12-13 00:15:18
问题 I'm new to asking questions here so any advice about that will be appreciated...but to my problem: I'm trying to switch from one activity to another, where I'll show some data from the server. I'm pulling the data from server via AsyncTask but there is black screen showing between the activities, when the download is longer. I already tried to put the AsyncTask from onCreate() to onStart() but no change there. New activity: public class SalesMenu extends Activity { @Override protected void

How to best show progress info when using ADO.NET?

给你一囗甜甜゛ 提交于 2019-12-12 20:03:26
问题 I want to show the user detailed progress information when performing potentially lengthy database operations. Specifically, when inserting/updating data that may be on the order of hundreds of KB or MB. Currently, I'm using in-memory DataTables and DataRows which are then synced with the database via TableAdapter.Update calls. This works fine and dandy, but the single call leaves little opportunity to glean any kind of progress info to show to the user. I have no idea how much data is

Force element.innerHTML update before javascript sort call

情到浓时终转凉″ 提交于 2019-12-12 18:28:15
问题 what is the best practice for this scenario: 1) User clicks "Sort huge javascript array" 2) Browser shows "Sorting..." through element.innerHTML="Sorting" 3) Browser sorts huge javascript array (100% CPU for several seconds) while displaying "Sorting..." message. 4) Browser shows result. Pseudo code: ... <a href="#" onclick="sortHugeArray();return false">Sort huge array</a> ... function sortHugeArray(){ document.getElementById("progress").innerHTML="Sorting..."; ...do huge sort ... ...render

How to show extraction progress of 7zip inside cmd?

浪尽此生 提交于 2019-12-12 18:24:07
问题 7z.exe do not show any extraction progress in cmd. "C:\Program Files\7-Zip\7zG.exe" -y x -pPASSWORD "D:\Myfile.rar" Extracts the file with a GUI progress-bar. But I don't want a GUI progress bar. I want to show the progress in terms of percentage inside cmd. i.e, I want to use 7z.exe instead of 7zG.exe with percentage progress shown. 回答1: You can use -bsp1 switch to view the progress 'C:\Program Files\7-Zip\7z.exe' a -bsp1 回答2: Take a look through this page - If it doesn't have any examples

Task bar progress

旧巷老猫 提交于 2019-12-12 18:05:57
问题 I've notice that some programs when they load, the icon in the task bar shows the progress, at least for windows 7. I wonder how to use that ability. Like show in the image below: 回答1: You need SetProgressState and SetProgressValue from the ITaskbarList3 interface. From Java you could try BridJ. 来源: https://stackoverflow.com/questions/7165484/task-bar-progress

C# how to load a form with marquee progress bar?

六眼飞鱼酱① 提交于 2019-12-12 13:28:35
问题 I created a loadingForm with only a progress bar with marquee style. In my mainForm I'm trying to do this: //before downloading loadingForm lf = new loadingForm(); lf.Show(); //start downloading //finishdownloading lf.Close(); The loadingForm was shown but the progress bar didn't appear, and the form looked like it was crash. after finishing downloading, the loadingForm was closed and my app continued to run normally. In loadingForm I only have: void loadingForm_Load(object sender, EventArgs

Change progress tracker to full span of parent container

人盡茶涼 提交于 2019-12-12 12:31:50
问题 I have a progress bar that I want to extend to 100% full width, like the image below, being that it extends its parent width: But its positioned like this in the center: I understand that the list items are aligned center, however I am hitting issues trying to fix it myself. I thought I could align left first circle and the last circle to the right, but then the second and third step circles aren't justified horizontally and the green line of the tracker bar does not align properly between

JQuery UI: multiple progress bar - problems to set dynamic values

杀马特。学长 韩版系。学妹 提交于 2019-12-12 10:38:12
问题 I have some progress bar (search results), which value is dynamically set on document.ready <div class="progressbar" rel="21"></div> <div class="progressbar" rel="36"></div> <div class="progressbar" rel="44"></div> <div class="progressbar" rel="58"></div> And $(document).ready(function () { $("div.progressbar").progressbar({ value: $(this).attr("rel") }); }); This not seems to work. Instead, if i do value: 40, everything works, so the problem is not in the inclusion or use. I tried with $

Using JQuery / JavaScript to turn a button into a progress bar

◇◆丶佛笑我妖孽 提交于 2019-12-12 10:26:13
问题 I am trying to find out how to turn a button into a progress bar. For example, in a bootstrap button such as: <button class="btn btn-large btn-primary" type="button">Load</button> I am currently using a classic bootstrap progress bar and refreshing it via a JQuery setInterval: <div class="progress progress-striped"><div id="data_loaded" \ class="bar" style="width: 100%;"></div></div> Is it possible to turn the button into a progress bar - so the advancing progress fills the background of the

Check progress of multiple BackgroundWorker

放肆的年华 提交于 2019-12-12 10:13:54
问题 So I create multiple BackgroundWorkers using loop: foreach (var item in list) { worker = new BackgroundWorker(); worker.DoWork += worker_DoWork; worker.RunWorkerAsync(item); } Now I just can't figure how do I check that all those workers finished their job ? Thanks. 回答1: You may keep a list of active workers and let each worker remove itself when finished: List<BackgroundWorker> workers = new List<BackgroundWorker>(); ... foreach (var item in list) { worker = new BackgroundWorker(); worker