Search found 13568 matches

by jvierra
Wed Jun 12, 2019 5:48 am
Forum: PowerShell GUIs
Topic: Fill Datagridview with data from an access
Replies: 3
Views: 74

Re: Fill Datagridview with data from an access

You need to use double quotes.

$QueryString ="'select IP,NomServer from TaulaLlistatIP where (Part1=$a)"
by jvierra
Tue Jun 11, 2019 10:54 am
Forum: Windows PowerShell
Topic: PSJob not running for v5 Host (silent)
Replies: 5
Views: 188

Re: PSJob not running for v5 Host (silent)

I went through you code. In a couple of minutes I threw out almost half as redundant or incorrect. I suggest that you test each piece of code without a form. Be sure that you remove all unnecessary lines and take advantage of good PS coding style and standards. This will make the code more predictab...
by jvierra
Tue Jun 11, 2019 9:56 am
Forum: Windows PowerShell
Topic: PSJob not running for v5 Host (silent)
Replies: 5
Views: 188

Re: PSJob not running for v5 Host (silent)

This looks to be part of WPF code. Are you trying to call a function in a WPF form?
by jvierra
Tue Jun 11, 2019 8:35 am
Forum: Windows PowerShell
Topic: New-ExoPSSession not being recognized as a cmdlet
Replies: 3
Views: 151

Re: New-ExoPSSession not being recognized as a cmdlet

You should not install 32 bit PSS on 64 bit OS. Remove it and install the 64 bit version. There are numerous issues with Azure CmdLets when run in a form. Also MFA causes issues with authentication. There are methods used to persist a set of credentials. You may also have to use an account that duos...
by jvierra
Mon Jun 10, 2019 8:02 am
Forum: PowerShell GUIs
Topic: How do I make a directory Treeview populate the sub-folder and files?
Replies: 2
Views: 185

Re: How do I make a directory Treeview populate the sub-folder and files?

Add this to the load event:

$treeviewNav.Nodes.Add('C:\','c:\')

And add this the to the "$treeviewNav_AfterSelect" event:

Code: Select all

    $node = $_.Node
	Get-ChildItem $node.Text -Directory |
        ForEach-Object{
            $node.Nodes.Add($_.FullName, $_.FullName)
        }
    $node.Expand()
by jvierra
Sun Jun 09, 2019 7:57 pm
Forum: PowerShell GUIs
Topic: datagridview|only New row editable
Replies: 4
Views: 130

Re: datagridview|only New row editable

Use "BeginEdit()" and "EndEdit()"
by jvierra
Sat Jun 08, 2019 8:36 pm
Forum: Windows PowerShell
Topic: powershell core 6.x
Replies: 5
Views: 347

Re: powershell core 6.x

Here is the posted bug report addressing this issue with PowerShell 7. The issue is in Net Core System.Drawing.

See: https://github.com/PowerShell/PowerShel ... -500171016

The issue will likely be resolved before PS7 is released.
by jvierra
Fri Jun 07, 2019 9:28 pm
Forum: PowerShell GUIs
Topic: New customer, new wizard form, validate multiple text boxes?
Replies: 22
Views: 518

Re: New customer, new wizard form, validate multiple text boxes?

You will learn that what is hidden is unnecessary for debugging. The code you add is all that counts. Once you learn how to use this kind of IDE you will find it much easier to use than a basic editor especially for Forms scripts. Sapien generates a highly structured base script that the IDE edits f...
by jvierra
Fri Jun 07, 2019 8:56 pm
Forum: PowerShell GUIs
Topic: New customer, new wizard form, validate multiple text boxes?
Replies: 22
Views: 518

Re: New customer, new wizard form, validate multiple text boxes?

I tis added automatically by the IDE. That is the whole point of using an IDE. It does all of the mundane things for you and hides them since you should not be altering them. Just create the events in the designer and add the code to the event you have created. This is how nearly all IDEs work. Visu...
by jvierra
Fri Jun 07, 2019 3:50 pm
Forum: PowerShell GUIs
Topic: Programming Track Bar
Replies: 4
Views: 122

Re: Programming Track Bar

Here is a simple example: