Programming Track Bar

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 4 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
nsayewich
Posts: 2
Last visit: Tue Jun 11, 2019 7:10 am

Programming Track Bar

Post by nsayewich »

I am just starting out using PowerShell Studio to program GUI's for my PowerShell scripts. I have built a basic GUI app so far using different resources I found. However I am trying to program a Trackbar for my app but can't find any examples I can use or any info for that matter on how to program it. My goal is to set each position of the track bar to represent a different value. Depending on which position is scrolled to that will update a variable to be used later.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Programming Track Bar

Post by jvierra »

What is a "TrackBar"? Do you mean "ProgressBar"? Have you looked at the examples in the info center:

https://info.sapien.com/

See the GUI examples.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Programming Track Bar

Post by jvierra »

Sorry. Yes - the TrackBar. I never yes that not have I ever seen anyone else use it.

The docs are here: https://docs.microsoft.com/en-us/dotnet ... mework-4.8

In most cases right clicking on a control in the toolbox will give you a link to the documentation.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Programming Track Bar

Post by jvierra »

Here is a simple example:
Attachments
Test-TrackBar.psf
(29.72 KiB) Downloaded 169 times
nsayewich
Posts: 2
Last visit: Tue Jun 11, 2019 7:10 am

Re: Programming Track Bar

Post by nsayewich »

This is perfect thank you so much. This is exactly what I needed.
This topic is 4 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked