About box in GUI
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.
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.
- jimbobukii
- Posts: 52
- Last visit: Mon Dec 04, 2017 9:59 am
About box in GUI
I am looking to have Menu Items within my PowerShell GUI but I am stuck with an about Dialog, could some one tell me how to call a dialog with all my details like version number etc?
Re: About box in GUI
FYI I moved the post to the PowerShell GUIs forum.
This really depends on the tool you are using. PowerShell Studio supports multi-form projects. It will involve more work if you use PrimalForms CE.
In either case I recommend looking at the Tic Tac Plebius game:
http://www.sapien.com/blog/2011/04/26/t ... hell-game/
It has an about box.
David
This really depends on the tool you are using. PowerShell Studio supports multi-form projects. It will involve more work if you use PrimalForms CE.
In either case I recommend looking at the Tic Tac Plebius game:
http://www.sapien.com/blog/2011/04/26/t ... hell-game/
It has an about box.
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- jimbobukii
- Posts: 52
- Last visit: Mon Dec 04, 2017 9:59 am
Re: About box in GUI
Thanks all,
I used the following....
I used the following....
PowerShell Code
Double-click the code block to select all.$formNewApplicationName_Load={ #TODO: Initialize Form Controls here $authorVersion = '1.0' $authorDate = 'March 2013' $authorName = 'Jason Rose' $authorEmail = 'jrose@yyyy.net.uk' $authorWebsite = 'http://yyyyy.co.uk' $authorDitty = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." $authorAppName = $formNewApplicationName.Text } $aboutToolStripMenuItem_Click={ #TODO: Place custom script here [void][System.Windows.Forms.MessageBox]::Show("Version:`t$authorVersion ($authorDate)`nEmail:`t$authorEmail`nWebSite:`t$authorWebsite`n`n$authorDitty","About $authorAppName") }
Re: About box in GUI
I was just about to suggest a message box if you only care about displaying text.
David
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.