LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET Progressbar Text

Solved!
Go to solution

Hello all,

 

i am writing a VI for the Progressbar of MS(system.windows.Forms) via .NET in LabVIEW. It seems easy to call a Progressbar with .NET Container, and the Style, Color, Value can be changed as well.

But my problem is : i want to put Text on the Progressbar, it just like "55% has been done", i tried to use the Property "Text", but it doesnt work. A methode called "CreateGraphics", "DrawString" may be work, but how can i deal wtih the Parametere "font" "brush" etc.

You Guys have any Idea?

Thank you for your Help!

 

Regards

APD

Progressbar.png

0 Kudos
Message 1 of 16
(3,630 Views)

LabVIEW already has a progress bar control built in.

0 Kudos
Message 2 of 16
(3,623 Views)

Hi,

 

thank you for your reply!

the reason why i dont use the progress bar of LabVIEW is all about the appearance :).

The Progressbar of .NET is cool, and it will be wonderful, wenn a Text can ben added into it.

There is another Progressbar, which can be called via ActiveX.

If you have any experience about this theme, could you please give me some tips.

 

MeerSchweinchen

0 Kudos
Message 3 of 16
(3,616 Views)

Well, I don't really know what your definition of "cool" is.

 

With respect to doing it with .NET, you need to create a "Font" object and a "Brush" object and a "Format" object, set their properties to what you want, and pass these to the DrawString method.

0 Kudos
Message 4 of 16
(3,611 Views)

Hi,

thank you again.

i have also tried this way before, but unfortunately it doesnt work.

The "brush" cant be defined with Property Node or Methode Node. 

I dont have so many experences about C#,

so do you have any Example, that i would like to learn it.

 

Regards,

0 Kudos
Message 5 of 16
(3,603 Views)

@AvalanchePD wrote:
I dont have so many experences about C#,

so do you have any Example, that i would like to learn it.

 

Regards,


Look for examples using Google or trying looking on Microsoft's website.

 

 

0 Kudos
Message 6 of 16
(3,594 Views)

@AvalanchePD wrote:

Hi,

The "brush" cant be defined with Property Node or Methode Node. 

I don't understand what you mean by this. You use the constructors for the classes to create an object of that type, and then set the properties for that object, and then pass that object to the DrawString method.

 

Please attach the VI you have.

0 Kudos
Message 7 of 16
(3,593 Views)

Hi,

i have attached the VI.

I would like to put the Text in the middle of the Progressbar.

Regards.

0 Kudos
Message 8 of 16
(3,588 Views)

Hi nyc,

i am looking for Help in NI-Forums after i tried to find some Example with Google and MS-Website.

In addition to this, i have no idea now. Do you have any Idea?

 

Regards.

0 Kudos
Message 9 of 16
(3,585 Views)

@AvalanchePD wrote:

Hi nyc,

i am looking for Help in NI-Forums after i tried to find some Example with Google and MS-Website.

In addition to this, i have no idea now. Do you have any Idea?

 

Regards.



You don't know how to to do something as simple as Google progressbar .NET ????

http://www.c-sharpcorner.com/uploadfile/mahesh/workingwithprogressbarincsharp11302005045625am/workin...

0 Kudos
Message 10 of 16
(3,580 Views)