Hi,
I'm a beginner with Powershell, but in the process of creating a GUI for returning license statistics on our license servers.
Here's the gist:
The different network-licensed software packages are listed in a combobox.
When I select from the combobox, it outputs the text to a richtextbox.
As of right now, I'm using a button to call the Clear() function to remove the text from richtextbox.
If I don't use the Clear button, and select another software package from the list, it appends the output text to the richtextbox.
What I would like:
When selecting from the combobox, it clears the output in the richtextbox.
Thanks for any help.
Powershell GUI for LMUTIL
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.
Re: Powershell GUI for LMUTIL
Hi,
greetz$ComboBox1_SelectedIndexChanged=
{
$richtextbox1.Clear()
# do something else
}
- ron.allison08
- Posts: 4
- Last visit: Fri Sep 09, 2022 11:02 am
Re: Powershell GUI for LMUTIL
Hi,
Thanks for the input, unfortunately this did not work. It continues to append the output to the richtextbox.
Thanks for the input, unfortunately this did not work. It continues to append the output to the richtextbox.