Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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.
- Posts: 8
- Joined: Wed Feb 07, 2018 10:28 pm
Is is possible calculate inside textbox?
Code: Select all
$a = $textbox1.text
$resultTextbox.text = $result
If i wtite at textbox1 - "5" and textbox2 - "5" as result i receive "10"
But i want write at textbox1 "5+1" and textbox2 - "5" and as result receive "11"
Is it possible?
- Posts: 13687
- Joined: Tue May 22, 2007 9:57 am
It is possible to evaluate a string.
$s = '5 * 2 + 3'