07-05-2013 08:47 AM
I need to use .net progress bar with tree states normal, error, and paused. but i cant seem to find the property that wil control this.
Is this can be done in labview ?
i was able to use Forecolor property after disabling the EnableVisualStyles() as in my attached example but that removes the style which is the main reason i chose this progress bar.
(Note: when running the attached example make sure to run it again with enabled style to get your windows style back.)
I read here that this can be achieved by running some windows API, i just dont know how this can be done in labview.
any help will be appreciated.
07-05-2013 08:52 AM
LabVIEW has progress bars. Why is is necessary to use .NET's ?
07-05-2013 08:57 AM
lets just say for learning purposes for now
07-05-2013 09:05 AM
@Sam2004mai wrote:
lets just say for learning purposes for now
Then, let's just say for learning purposes, you will need to read up on how to communicate with .NET from LabVIEW. There are some in the Examples that ship with LabVIEW.
07-10-2013 02:42 AM
HI
I think it can solve your problem.
07-10-2013 08:00 AM
Thank you Garousi for your response, but i already went across this solution it works good on task bars but when i try to use same dll file to change status of progressbar it just doesnt work. maybe i need a different dll file to change progressbar status.
am i doing something wrong here ? please see the attached vi and let me know what you think.
07-10-2013 08:17 AM - edited 07-10-2013 08:18 AM
Hello Sam,
in .NET you work with classes, so you have to instantiate the objects, derived from classes. Use the constructor- node to do this. Attached is the screenshot of a working solution and the appropriate .NET Constructor dialog.
07-10-2013 08:42 AM - edited 07-10-2013 08:43 AM
Hi Dave i still get Progressbar with disabled style when i use your solution.
07-10-2013 09:35 AM
Hello SAM,
I see now your problem. Unfortunately you have to use the windows API function "SendMessage" to change the color, for instance documented here. I don't know, how to achieve this. Sorry.