Search found 252 matches

by mqh77777
Tue Jun 28, 2016 9:54 am
Forum: PowerShell Studio
Topic: calling Out-Gridview
Replies: 2
Views: 1950

calling Out-Gridview

Product, version and build: 2014 32 or 64 bit version of product: 64 Operating system: Windows 7 x64 32 or 64 bit OS: x64 PowerShell Version: 5.0 I have created a FORM using PowerShell Studio v2014. On this form I have a button that when pressed will get the mapped drives of a remote machine. $pc = ...
by mqh77777
Thu May 07, 2015 2:27 pm
Forum: PowerShell GUIs
Topic: Code not running as expected
Replies: 2
Views: 1382

Code not running as expected

I have a form that has this code: function OnApplicationLoad { return $true #return true for success or false for failure } function OnApplicationExit { $script:ExitCode = 0 #Set the exit code for the Packager } # This function gets the date/time and finds out the last time the system was rebooted f...
by mqh77777
Mon Mar 02, 2015 1:31 pm
Forum: PowerShell Studio
Topic: Running a form - getting errors
Replies: 4
Views: 1601

Re: Running a form - getting errors

The name of my form is Type2_LogOff and I have tried this:

$formType2_LogOff.Visible = $false
$Type2_LogOff.Visible = $false

and I've put each at the top and bottom of my script and I still see the form when I double click on the compiled .exe
by mqh77777
Mon Mar 02, 2015 10:35 am
Forum: PowerShell Studio
Topic: Running a form - getting errors
Replies: 4
Views: 1601

Running a form - getting errors

I've created a new blank form. No buttons, no text. When run it will execute some code. When I run this form it executes but the Form itself stays on top. How do I run it silently so you never see the form?
by mqh77777
Fri Feb 27, 2015 1:32 pm
Forum: PowerShell Studio
Topic: code won't run from a Form
Replies: 12
Views: 3970

Re: code won't run from a Form

found it :shock:
by mqh77777
Fri Feb 27, 2015 1:09 pm
Forum: PowerShell Studio
Topic: code won't run from a Form
Replies: 12
Views: 3970

Re: code won't run from a Form

I've looked at all of the properties on the grid view and I don't see anything that says "use whole window" or max view etc... how do you do this?
by mqh77777
Thu Feb 26, 2015 12:13 pm
Forum: PowerShell Studio
Topic: code won't run from a Form
Replies: 12
Views: 3970

Re: code won't run from a Form

David, thank you, that is cool. It worked. One minor thing....when it displays my mapped drives it does not use the entire grid-view and the drive locations get cut off. How do I make it use the entire window?
by mqh77777
Thu Feb 26, 2015 11:43 am
Forum: PowerShell Studio
Topic: code won't run from a Form
Replies: 12
Views: 3970

Re: code won't run from a Form

That actually was already checked. Default action for missing events was set to ask and I changed that to insert. I then closed and re-opened the app and it still does not work. Here is the full error output. >> Platform: V2 32Bit ERROR: The term 'Load-DataGridView' is not recognized as the name of ...
by mqh77777
Thu Feb 26, 2015 11:03 am
Forum: PowerShell Studio
Topic: code won't run from a Form
Replies: 12
Views: 3970

Re: code won't run from a Form

I've tried this code as well and it too fails

$machine = Read-Host -Prompt "enter machine name"
$grab = Get-WMIObject win32_mappedlogicaldisk -ComputerName $machine | Select Name, ProviderName

$grab | Out-GridView
by mqh77777
Thu Feb 26, 2015 10:54 am
Forum: PowerShell Studio
Topic: code won't run from a Form
Replies: 12
Views: 3970

Re: code won't run from a Form

here is my code: $button1_Click={ #TODO: Place custom script here $machine = Read-Host -Prompt "enter machine name" $grab = Get-WMIObject win32_mappedlogicaldisk -ComputerName $machine | Select Name, ProviderName Load-DataGridView -DataGridView $datagridviewResults -Item $grab } when I run...