To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example demonstrates how to use the ActiveX control ProgressBar to show the progress of an operation.
Description
The example uses a ActiveX control to implement a loading bar. The ActiveX object that is used for the Loading Bar is of the class ProgressBar (MSComctlLib.IProgressBar). The loading bar uses the property Max and the property Value of the ProgressBar object to configure and update the Loading Bar.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
Microsoft MDSN: ProgressBar-Klasse (System.Windows.Forms)
https://msdn.microsoft.com/de-de/library/system.windows.forms.progressbar(v=vs.110).aspx
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Thanks for posting! Could you rename your attachment to include the LabVIEW version?
Thanks, very helpful. I would like create a progress bar where the Max iteration can be changed like a variable. This is important when you do not know the precise timing for a single iteration of a for loop. E.g. I would like to scan various files for specific data. How do i set the Max of the progress bar to the Number of Files? I would like to see the progress of my scan. Howver, some files might contain more info and hence take more time to scan. I would like my progress bar to reflect this delay.