Search found 13568 matches

by jvierra
Wed Jun 05, 2019 7:15 pm
Forum: PowerShell GUIs
Topic: Are there any showcase examples of PowerShell Studio GUI?
Replies: 6
Views: 165

Re: Are there any showcase examples of PowerShell Studio GUI?

I'll try and word things more correctly if possible but right now my vocabulary is like being in an expat in a foreign country in regards to coding and powershell. I apologize for my entry level skills. Never a need to apologize. Everyone starts at the beginning. It is the next steps that make all ...
by jvierra
Wed Jun 05, 2019 7:10 pm
Forum: PowerShell GUIs
Topic: Are there any showcase examples of PowerShell Studio GUI?
Replies: 6
Views: 165

Re: Are there any showcase examples of PowerShell Studio GUI?

Hello, Thank you for the quick reply. I see I will need to use correct use of words so that I can be understood. No. That is not the point. You need to use words correctly so that you can understand. Please realize that out ability to think about and learn things is highly dependent our ability to ...
by jvierra
Wed Jun 05, 2019 5:37 pm
Forum: PowerShell GUIs
Topic: Are there any showcase examples of PowerShell Studio GUI?
Replies: 6
Views: 165

Re: Are there any showcase examples of PowerShell Studio GUI?

PowerShell Studio does not create GUI Apps. It creates packaged PowerShell scripts. Any PowerShell script can be packaged.
by jvierra
Wed Jun 05, 2019 5:33 pm
Forum: PowerShell GUIs
Topic: Form Freezes until a command line tool completes
Replies: 2
Views: 76

Re: Form Freezes until a command line tool completes

All blocking code in an event will always freeze the form.

I n this case do not use "Wait" and it will not block.
by jvierra
Wed Jun 05, 2019 5:31 pm
Forum: PowerShell GUIs
Topic: How do I freely Allow Mouse Click ON and OFF a Form?
Replies: 3
Views: 98

Re: How do I freely Allow Mouse Click ON and OFF a Form?

You can only have one active form and that is the last one you have launched. That is the meaning of "ShowDialog()". A dialog form is modal and must be closed before the launching form can be selected.
by jvierra
Wed Jun 05, 2019 11:59 am
Forum: PowerShell GUIs
Topic: Unable to get datagrid updated.
Replies: 9
Views: 160

Re: Unable to get datagrid updated.

Which means your SQL is not returning anything.
by jvierra
Wed Jun 05, 2019 8:43 am
Forum: PowerShell GUIs
Topic: Unable to get datagrid updated.
Replies: 9
Views: 160

Re: Unable to get datagrid updated.

Since Invoke-SqlCmd returns a datatable just assign that to the grid.

Code: Select all

    $p = @{
        ServerInstance = 'localhost'
        Database = 'playpen'
        Query = 'SELECT * FROM Play'
        OutputAs = 'Datatable'
    }
    $dt = Invoke-Sqlcmd @p
    $datagridview1.DataSource = $dt
by jvierra
Wed Jun 05, 2019 8:06 am
Forum: Windows PowerShell
Topic: Modules Installed Already?
Replies: 3
Views: 207

Re: Modules Installed Already?

Sorry, little confused. The machine I am using for trial is Windows 10, (with powershell 5.1). In the video its win10 and powershell 5.0, so why won't it work? Then it is likely that you didn't select V 5.1 in the "platform" selection. Check to see which version you selected. "Home" tab "Platform" ...
by jvierra
Wed Jun 05, 2019 7:38 am
Forum: Windows PowerShell
Topic: Modules Installed Already?
Replies: 3
Views: 207

Re: Modules Installed Already?

You cannot use that command with PowerShell 2. It is only valid in WMF 3 or later.

Be sure to only follow videos for WMF 3 or later when learning forms. PS2 based training can be misleading. PS1 training is even more problematic.

The video specifies W10 WmF 5.1 explicitly.
by jvierra
Wed Jun 05, 2019 7:35 am
Forum: PowerShell GUIs
Topic: Unable to get datagrid updated.
Replies: 9
Views: 160

Re: Unable to get datagrid updated.

The following query is wrong. You cannot set a wildcard and use "As Names". You must specify a specific field by name.