LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net Windows 7 progress bar states?

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. 

 

 

 

0 Kudos
Message 1 of 9
(4,477 Views)

LabVIEW has progress bars. Why is is necessary to use .NET's ?

 

0 Kudos
Message 2 of 9
(4,474 Views)

lets just say for learning purposes for now Smiley Wink

0 Kudos
Message 3 of 9
(4,471 Views)

@Sam2004mai wrote:

lets just say for learning purposes for now Smiley Wink


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.

 

0 Kudos
Message 4 of 9
(4,457 Views)
0 Kudos
Message 5 of 9
(4,286 Views)

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.

0 Kudos
Message 6 of 9
(4,273 Views)

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.

 

 

 

 

Greets, Dave
0 Kudos
Message 7 of 9
(4,265 Views)

Hi Dave i still get Progressbar with disabled style when i use your solution.

 

0 Kudos
Message 8 of 9
(4,255 Views)

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.

Greets, Dave
0 Kudos
Message 9 of 9
(4,237 Views)