Support Forums

Search found 10190 matches

by jvierra
Sun Jan 22, 2017 10:41 am
Forum: Windows PowerShell
Topic: PXE phase use encrypted credentials
Replies: 1
Views: 6

Re: PXE phase use encrypted credentials

Credentials are not portable. They can only be used under the account that created the credential.
by jvierra
Fri Jan 20, 2017 4:20 pm
Forum: PowerShell GUIs
Topic: Open form window and run process without user interaction
Replies: 1
Views: 86

Re: Open form window and run process without user interaction

#1 - You can't. You cannot display anything while the form is loading. #2 - It is very difficult to manage installers. They do not persist as a process while they run. Start here to learn how to use forms effectively: https://www.sapien.com/blog/2012/05/16/powershell-studio-creating-responsive-forms...
by jvierra
Fri Jan 20, 2017 6:38 am
Forum: Windows PowerShell
Topic: import chosen file into a textbox
Replies: 6
Views: 124

Re: import chosen file into a textbox

What have you tried? Use the textbox click event to call your code.
by jvierra
Fri Jan 20, 2017 6:15 am
Forum: Windows PowerShell
Topic: import chosen file into a textbox
Replies: 6
Views: 124

Re: import chosen file into a textbox

You cab use PowerShell Studio to design and test forms or you can learn how to hand code a form.

See: https://www.sapien.com/software/powershell_studio
by jvierra
Fri Jan 20, 2017 5:17 am
Forum: Windows PowerShell
Topic: import chosen file into a textbox
Replies: 6
Views: 124

Re: import chosen file into a textbox

Add-Type -AssemblyName System.Windows.Forms $form = New-Object System.Windows.Forms.Form $textbox = New-Object System.Windows.Forms.TextBox $FileBrowser = New-Object System.Windows.Forms.OpenFileDialog $form.StartPosition = 'CenterScreen' $form.Controls.Add($textbox) $textbox.Dock =...
by jvierra
Fri Jan 20, 2017 5:00 am
Forum: Windows PowerShell
Topic: import chosen file into a textbox
Replies: 6
Views: 124

Re: import chosen file into a textbox

You will have to create a form with a textbox and assign the file to the textbox:

Code: Select all

$textbox.Text = Get-Content $FileBrowser.FileName
by jvierra
Fri Jan 20, 2017 4:43 am
Forum: Windows PowerShell
Topic: Log PS output to a file?
Replies: 11
Views: 236

Re: Log PS output to a file?

Use this:

Get-Child Item $transpath

transscript.png
transscript.png (64.05 KiB) Viewed 24 times
by jvierra
Thu Jan 19, 2017 4:01 pm
Forum: Windows PowerShell
Topic: Cant color datagridview
Replies: 6
Views: 73

Re: Cant color datagridview

Easy enough:

Code: Select all

$datagridview1.Rows| %{$_.DefaultCellStyle.BackColor = 'blue'}
by jvierra
Thu Jan 19, 2017 2:10 pm
Forum: Windows PowerShell
Topic: Cant color datagridview
Replies: 6
Views: 73

Re: Cant color datagridview

Here is how to reset the whole row:

Code: Select all

$datagridview1.SelectedRows| %{$_.DefaultCellStyle.BackColor = 'blue'}
by jvierra
Thu Jan 19, 2017 2:06 pm
Forum: Windows PowerShell
Topic: Cant color datagridview
Replies: 6
Views: 73

Re: Cant color datagridview

Enable full row select. Be sure that the row is selected.

You cannot change a row cell color by changing the default. You have to change the cell color.

Go to advanced search