Support Forums

Powershell GUI for LMUTIL

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.
User avatar
ron.allison08
Posts: 2
Joined: Tue Feb 16, 2016 12:04 pm

Powershell GUI for LMUTIL

Postby ron.allison08 » Tue Feb 16, 2016 12:13 pm

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.
User avatar
monoeagle
Posts: 90
Joined: Tue Oct 13, 2015 9:10 am

Re: Powershell GUI for LMUTIL

Postby monoeagle » Tue Feb 16, 2016 12:55 pm

Hi,

$ComboBox1_SelectedIndexChanged=
{
$richtextbox1.Clear()

# do something else
}


greetz
User avatar
ron.allison08
Posts: 2
Joined: Tue Feb 16, 2016 12:04 pm

Re: Powershell GUI for LMUTIL

Postby ron.allison08 » Tue Feb 16, 2016 1:03 pm

Hi,

Thanks for the input, unfortunately this did not work. It continues to append the output to the richtextbox.
User avatar
jvierra
Posts: 9698
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Powershell GUI for LMUTIL

Postby jvierra » Tue Feb 16, 2016 1:09 pm

$richtextbox.Text='New text'

Of course without your script we cannot really tell how you are doing this. You have to post the code that outputs to the textbox.

Return to “PowerShell GUIs”

Who is online

Users browsing this forum: No registered users and 5 guests