Time Tracking App

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 11 years and 2 weeks 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
User avatar
wmikef7
Posts: 32
Last visit: Thu Oct 03, 2019 8:25 am

Time Tracking App

Post by wmikef7 »

This is probably out of scope, but I'm hoping someone can point me to a better resource for the information I need.

I'm totally new to PrimalForms and am a lite-weight on powershell.

I want to create an app that will track time spend on projects.

I created a form with a list box that has all the projects.
A start timer button and a stop timer button.
And an output box(dataGridView), which might not be needed that I am thinking should show accummulative times for the projects that have had time worked against them.

I have the start and stop timer functions working, but that's it.

I would like to have accumulative time show in the output box and, int he futire have all the data for a day emailed to the user using this app.

Can anyone either work with my or point me to a very good resource for learning how to do this?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Time Tracking App

Post by davidc »

I moved the post to the appropriate forum.

I recommend referring to this post for general GUI help:

http://www.sapien.com/forums/viewtopic.php?f=21&t=6451


I also recommend reading the Spotlight on the Timer control:

http://www.sapien.com/blog/2011/08/09/p ... r-control/

It has an example form file that may help.

Note: You can use Get-Date cmdlet to measure time:
PowerShell Code
Double-click the code block to select all.
$script:startTime = Get-Date

#perform operation

$script:endTime = Get-Date

Write-Host ($script:endTime - $script:startTime)
David
David
SAPIEN Technologies, Inc.
This topic is 11 years and 2 weeks 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