Search found 13003 matches

by jvierra
Fri Dec 28, 2018 5:30 am
Forum: PowerShell GUIs
Topic: Use textbox to open form make sound
Replies: 7
Views: 235

Re: Use textbox to open form make sound

I should also note that you cannot use multiline and trap the return key or use the "AcceptButton" and trap the return key.
by jvierra
Fri Dec 28, 2018 4:59 am
Forum: PowerShell GUIs
Topic: Use textbox to open form make sound
Replies: 7
Views: 235

Re: Use textbox to open form make sound

Please post a simple sample PSF of your issue.
by jvierra
Thu Dec 27, 2018 11:11 am
Forum: PowerShell GUIs
Topic: Access textbox contents on formclose
Replies: 2
Views: 140

Re: Access textbox contents on formclose

Register-ObjectEvent does not work with forms. You must add the event to the form. $form1_FormClosing = [System.Windows.Forms.FormClosingEventHandler]{ #Event Argument: $_ = [System.Windows.Forms.FormClosingEventArgs] $logtext = $TextBox1.text add-content "c:\dump\admingui_closed1.txt" $logtext } $f...
by jvierra
Sun Dec 23, 2018 1:10 pm
Forum: Windows PowerShell
Topic: Access help for script installed from PSRepository
Replies: 1
Views: 391

Re: Access help for script installed from PSRepository

Without your code it is not possible to guess at the issue. You can start by reading the following very carefully. https://www.sapien.com/blog/2015/02/18/troubleshooting-comment-based-help/ I would also suggest creating a very simple module with one function and testing it until you find what you ar...
by jvierra
Tue Dec 18, 2018 3:17 pm
Forum: Windows PowerShell
Topic: What product will work
Replies: 1
Views: 319

Re: What product will work

Your question is very basic and is not really about a product. Any script can "push" or copy a script to a group of systems. As far as the "polling" part goes that is not answerable without some idea of what the script does. Perhaps you might start by asking the author or vendor of the script for mo...
by jvierra
Mon Dec 17, 2018 12:29 pm
Forum: PowerShell GUIs
Topic: Form doesn't resize correctly on RDS 2012
Replies: 2
Views: 87

Re: Form doesn't resize correctly on RDS 2012

The most likely cause is that your form has a greater size than the resolution of the RDS session. Your for is 1090 wide. What are the remote session display settings?
by jvierra
Sun Dec 16, 2018 1:35 pm
Forum: PowerShell GUIs
Topic: Datagrid does not allow delete row when "EditOnEnter"
Replies: 3
Views: 538

Re: Datagrid does not allow delete row when "EditOnEnter"

I just tested. Set grid to "EnterOnKeyStroke" to get it to allow deletions. "EditOnEnter" always forces the first cell to be entered whenever the record is selected. To delete programmatically do the following: $buttonDeleteRow_Click = { $ix = $datagridview1.SelectedCells[0].RowIndex $datagridview1....
by jvierra
Sun Dec 16, 2018 11:51 am
Forum: PowerShell GUIs
Topic: Datagrid does not allow delete row when "EditOnEnter"
Replies: 3
Views: 538

Re: Datagrid does not allow delete row when "EditOnEnter"

In your delete code cancel the edit on the row before deleting it.

You can also select the row with the row header which will not start an edit. Once you are in edit mode delete is not available. Use the row selector (header) to select then delete the row.
by jvierra
Thu Dec 13, 2018 12:41 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 815

Re: Using PowerShell to detect and remove certain type of software?

I have modified the example to produce extra messages that make what is happening easier to understand - I think.
by jvierra
Thu Dec 13, 2018 12:06 pm
Forum: Windows PowerShell
Topic: Using PowerShell to detect and remove certain type of software?
Replies: 12
Views: 815

Re: Using PowerShell to detect and remove certain type of software?

To further modify the design to obtain the desired behaviors we can use PwoerShell's built-in capability of setting and managing the preferences dynamically.

Here is how that is accomplished in code.

<file to be posted>