A long standing complaint with the standard progress bar control is that there is no easy way to display text. In spite of numerous requests, Microsoft has not included this capability. The following code includes a class, `CustomProgress` which inherits the standard `ProgressBar` and adds such a feature. It is fairly easy to use. If you want to show a percentage progress you set `Text` to a null string and the percentage will be calculated from the `Minimum` and `Maximum` value properties. If you want a custom string then assign it to `Text`. Either the percentge or custom text will …

Member Avatar
Member Avatar
+4 forum 3

Hello. As from the topic title, i am trying to work a multithread GUI where the progress bar indicates the running process completion (like we always see when we are installing/uninstalling/downloading). I've read a couple of written tutorials and some other forums discussions regarding the progress bar and multithreading. I've also even tried the simple multithreading examples given but I still don't get it especially adding the process that i want to run. This is my GUI (simple) ![window.JPG](/attachments/large/4/38a5cc286b292d70c71cda871a2d80e5.JPG "align-center") : class MyApp(QtWidgets.QMainWindow, Ui_MainWindow): def __init__(self): QtWidgets.QMainWindow.__init__(self) Ui_MainWindow.__init__(self) self.setupUi(self) self.progressBar.setVisible(False) #I WASN'T SUCCESSFULL IN MANUALLY CREATING A PROGRESS BAR BUT …

Member Avatar
Member Avatar
+0 forum 1

Hi Im trying to Populate my datagridview from data scraped off of webpage i Want to be able to report progress when datagrid finished updating.. with a progressbar.. Please Help!!!!!! Thank You.. Heres My code Dim theElementCollection As Windows.Forms.HtmlElementCollection theElementCollection = Form1.WebBrowser2.Document.GetElementsByTagName("a") For Each curElement As HtmlElement In theElementCollection Form1.DataGridView1.Rows.Add(curElement.GetAttribute("title"), (curElement.GetAttribute("href"))) Dim numberOfRows = Form1.DataGridView1.Rows.Count - 1 Dim i As Integer = 0 While i < numberOfRows - 2 For ii As Integer = (numberOfRows - 2) To (i + 1) Step -1 If Form1.DataGridView1.Rows(i).Cells(0).Value.ToString() = Form1.DataGridView1.Rows(ii).Cells(0).Value.ToString() Then Form1.DataGridView1.Rows.Remove(Form1.DataGridView1.Rows(ii)) numberOfRows -= 1 End If Next i += 1 End While …

Member Avatar
Member Avatar
+0 forum 2

I'm trying to add a progress bar to a working theaded program that uses a cancelation token too. The structure of the program is: I have a button "BeginButton" that calls the function "MyFunction()". The function runs in another thread and a cancellation token listens if I press a Cancel button. I needed to add the thread since the UI freezes when MyFunction() runs and I wasn't able to stop it. Since the MyFunction() reads a file in chunks of 1024 bytes, my logic to show the progress is get the 1% of File.Length and check when the loop increases …

Member Avatar
Member Avatar
+0 forum 2

I would like to convert Control objects wich are in my array to progress bar Objects if possible. I know that the reverse conversion can be done explicitly without a problem but this one seems tricky. If impossible then please suggest something else instead. TNX

Member Avatar
Member Avatar
+0 forum 2

Hi I have a progressbar and it's going from left to right but what I will it to do that it goes from right to left with full and take one step backwards after pressing commandbutton each time Le Nenne

Member Avatar
Member Avatar
+0 forum 11

Anyone can help me " I want when txt file data upload that time progress bar display with Processing nth of n records … in asp.net "

Member Avatar
Member Avatar
+0 forum 1

ProgressBar loading; Button login; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); loading=(ProgressBar)findViewById(R.id.progressBar1); login=(Button)findViewById(R.id.button1); } public void loginAuthenticate(View view) { loading.setVisibility(View.VISIBLE); login.setVisibility(View.INVISIBLE); Log.v("EditText", uname = txtUname.getText().toString()); Log.v("EditText", pass = txtPass.getText().toString()); initControls(); } The initControls() is a function that connects to a website and sends login information. I want to display the progressbar after I click the login button but it doesn't appear immediately. It waits for the initControls() to be done before appearing.

Member Avatar
Member Avatar
+0 forum 1

Hello all daniwebbers. I've been working on an application that uses TCP to send messages to another computer, but I am going to be updating it alot! I know how to make my program update itself, but I just want a progress bar so you know how long it will take until the file is completely downloaded. Also does anyone know how to zip and unzip files in VB.NET, it would make my updater easier if it can just download a zip file and then unzip it and copy the contents to my applications running directory. Thanks. :)

Member Avatar
Member Avatar
+0 forum 2

[B]Hi all, I would ask about fileUpload control, in asp.net 2008 can I know how remaining time to upload file successfully without using threading and without using javascript? the progress bar not problem, the problem that faced me is how to know how much file size was uploaded...[/B]

Member Avatar
Member Avatar
+0 forum 5

Hey, I'm having a bit of trouble with progress bars and background workers and want to try and solve this with the simplest solution What I am doing is reading the contents of a specific directory, I am then displaying in a list box all the folder names so that a user can click on them for further functionality What I want to do, Is have a progress bar run whilst it is adding the folders to the list box but I am not sure how I can do it.. Is anyone able to help me out? Thanks Dan _____ …

Member Avatar
Member Avatar
+0 forum 3

I display the progress bar for downloading attachments and it works fine … but when I am downloading some attachments I get the exception message: [QUOTE] Exception in thread "main" com.sun.mail.util.DecodingException: BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 1 before EOF, the 10 most recent characters were: "Q3w5ilxj2P"[/QUOTE] I found the explanation: [QUOTE] Certain IMAP servers do not implement the IMAP Partial FETCH functionality properly. This problem typically manifests as corrupt email attachments when downloading large messages from the IMAP server. To workaround this server bug, set the "mail.imap.partialfetch" property to false. You'll have …

Member Avatar
+0 forum 0

Alright, so in yesterday's thread, I asked for the codes to copy the contents of a directory to a separate directory. The code: My.Computer.FileSystem.CopyDirectory( , , ) worked fine. However, I have decided that I wish to add a progress bar into the mix so that the user can see the progress of the transfer \ copy. So far: [CODE] btn_Quit.Enabled = False Dim path As String = Application.StartupPath Dim prgpath As String = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) Dim datfldr As String = (path + "\a") Dim prgfldr As String = (prgpath + "\1") IO.Directory.CreateDirectory(prgfldr) Dim prgfldr2 As String = (prgfldr + "\2") …

Member Avatar
Member Avatar
+0 forum 12

Hi guys. I would just like to know if there is a way to integrate a progressbar that shows the progress of the process? I mean when process.Start is activated, that's when the progressbar starts to load until and stops only when process.HasExited. I hope someone can help. Thanks.

Member Avatar
Member Avatar
+0 forum 7

Hi, i was working on an application which is quite similar to winRAR or other compression software. at the moment i facing prob with the progress bar. my idea was that whenever i click on the button to compress the progress bar will load and ended when the compression complete. However i first time using progress bar so i not too sure how i could sychronise the compression time with the progress bar. thanks in advance:*

Member Avatar
Member Avatar
+0 forum 1

First, I apologize for posting this since it seems to have been addressed for every situation except mine (or so I can find), and I admit I am a complete novice. [B]Intro:[/B] I have a batch file which gets placed in a directory with target files, loops through the files in the directory, converting them using another program, and moves the output to a dated subdir. Each conversion takes about 30 minutes. The unfinished output file sometimes changes size as it is being converted, but this is quite slow. [B]Need:[/B] Some sort of progress or activity bar to indicate something …

Member Avatar
Member Avatar
+0 forum 6

Hello all. Even though my javascript/ajax knowledge is very low, I would like to be able to do the following, for which I ask you for help: I have a python script that runs from php with exec command. It takes about 5-10 seconds to complete. While the python script is processing I would like to show a progress bar to the user. In fact, it doesn't need to be a progress bar, a 'loading... bar' would be more than enough. As I have already said, I don' know much about this, but I think I need ajax to do …

Member Avatar
Member Avatar
+1 forum 2

Hi all . . i need to develop an uploader for my website . . i done it . but the progress bar not working . . plz do help me .. thanks in advance . . --Karthik this is my code . aspx page : [CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>File Upload page</title> <style type="text/css"> #container { background-color:silver; } </style> </head> <body> <form id="form1" runat="server"> <div id="container"> <asp:FileUpload ID="FileUpload1" runat="server" /> <br/> <asp:FileUpload ID="FileUpload2" runat="server" /> <p> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="upload" Width="83px" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; …

Member Avatar
Member Avatar
+0 forum 2

I have a form let's call it Form1 that calls another form(Form2) Form2 to has a bit a code that needs to load in the LOAD_EVENT and takes about 4 seconds. I have made a new form(frmProgress) that only has a progress bar. I want frmProgress to show up and load the progress bar meanwhile Form2 is loading. I've tried using BackgroundWorker but I can't seem to get the grasp of it. Can someone please help me out. Thanks. btw i've looked into some tutorials but don't fully understand it.

Member Avatar
Member Avatar
+0 forum 5

I have this code : for downloading image from the web [CODE]PictureBox1.ImageLocation =""[/CODE] and i want to add Progress Bar if start download the image start the Progress Bar and when finished the download Progress Bar =100

Member Avatar
Member Avatar
+0 forum 9

how to add progress bar on button click that i know but how to hide progress bar after it complete till 100% and then on to next form bcoz i tryd but both form appears togather after clicking on button plz solve my problem

Member Avatar
Member Avatar
+0 forum 2

I'm trying to display a progress bar or animation for an update panel that takes a while to load. The update panel is housing a chart that uses multiple chart areas, and the code behind is building these chart areas during the update. I'm not sure what I'm missing using the UpdateProgress control. i know i should be adding an actual image in the progress template, but i'm holding off on that just trying to get the text to display as i have seen in some examples i have found. sidenote* would it better to use updateprogress, or updatepanelupdateanimation extender? …

Member Avatar
Member Avatar
+0 forum 8

Hello Daniweb, it's me (again). I am making a web browser app and would like to have a loading bar. I'm using the default ProgressBar control but I don't know how to program it! Help! Thanks for your help, -Toby -------------------------------------------------------------------------------------- If you put in your two pence worth, then someone, somewhere is making a penny.

Member Avatar
Member Avatar
+0 forum 7

I have added one [B]Status label[/B] and a [B]Progressbar [/B]in a [B]StatuStrip[/B]. But as soon as text length of Statuslabel increases/decreases the Progressbar changes it's position. I want to wrap text of Statuslabel in specified length of Statuslabel though text length is greater than it's length so that Progressbar will not change it's position. Can you help ? Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

Correction: The subject line was supposed to have said BAR CHARTS, not bar codes. Rather than reinventing the wheel, I'd like to know if something already exists that will get going me in the right direction. I have a program that, among other things, ftp's files to multiple computers in a multi-tasking mode. Since the files can be large and can take a long to complete, the system looks like it's dead so I print out some text output to one of my frames. But it's ugly and confusing since up to 20 processes are running. Is there something out …

Member Avatar
Member Avatar
+0 forum 1

The End.