07-10-2012 04:47 AM
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
Solved! Go to Solution.
07-10-2012 07:14 AM - edited 07-10-2012 07:16 AM
LabVIEW already has a progress bar control built in.
07-10-2012 07:38 AM
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
07-10-2012 07:50 AM
07-10-2012 08:10 AM - edited 07-10-2012 08:11 AM
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,
07-10-2012 08:16 AM
@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.
07-10-2012 08:16 AM
@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.
07-10-2012 08:25 AM
Hi,
i have attached the VI.
I would like to put the Text in the middle of the Progressbar.
Regards.
07-10-2012 08:29 AM
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.
07-10-2012 08:36 AM
@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 ????