Support Forums

Search found 10813 matches

by jvierra
Wed May 24, 2017 5:42 pm
Forum: PowerShell GUIs
Topic: TAB on matched string
Replies: 7
Views: 56

Re: TAB on matched string

Sorry:

Look up and study the "forms events control flow" documentation.

Language is tricky. I get sloppy at ties.
by jvierra
Wed May 24, 2017 5:30 pm
Forum: PowerShell GUIs
Topic: TAB on matched string
Replies: 7
Views: 56

Re: TAB on matched string

Validateevent of the textbox? The Validate and Validating events of ANY "forms control" control the behavior of the form. As long as "Validating" returns "$_.Cancel - $true" the control will remain in focus. When it doesn't the "Validated event will fire allowing ...
by jvierra
Wed May 24, 2017 3:13 pm
Forum: PowerShell GUIs
Topic: TAB on matched string
Replies: 7
Views: 56

Re: TAB on matched string

You can set the form to move through the tabs automatically in the order you set. Place your test in the "Validating" event. When the event validates successfully the next control will be automatically selected. If you want a different control to be next use the "Select()" method...
by jvierra
Wed May 24, 2017 1:45 pm
Forum: Windows PowerShell
Topic: R6034 | Runtime Error | ..attempt to load C runtime library
Replies: 3
Views: 86

Re: R6034 | Runtime Error | ..attempt to load C runtime library

The C runtime must be present for anything to work. You need to be sure that Net 3.5 SP1 is installed.

In the "Microsoft SQL Server Compact Edition" folder under "Programs Files" contains a readme (ReadmeSSCE_ENU.htm) describing the requirements and limitations of SqlCE.
by jvierra
Wed May 24, 2017 1:27 pm
Forum: Windows PowerShell
Topic: R6034 | Runtime Error | ..attempt to load C runtime library
Replies: 3
Views: 86

Re: R6034 | Runtime Error | ..attempt to load C runtime library

The extra DLLs need to be added to the project in the installer phase. You cannot load them in the project folder or they may be added incorrectly.

DLLs can be targeted to a specific folder. In your case the should be in the folder with the EXE.
by jvierra
Wed May 24, 2017 11:43 am
Forum: PowerShell GUIs
Topic: Create a DataGridView and export to a csv
Replies: 55
Views: 267

Re: Create a DataGridView and export to a csv

Here is how to load the DataTable:

Code: Select all

Get-ADComputer -Filter * -SearchBase '....' |
ForEach-Object{
$a = @(
$_.Name,
''
)
$dt.Rows.Add($a)
}
by jvierra
Wed May 24, 2017 11:37 am
Forum: PowerShell GUIs
Topic: Create a DataGridView and export to a csv
Replies: 55
Views: 267

Re: Create a DataGridView and export to a csv

In this scenario you have to add the rows after you create the columns in the table. And again - you cannot add items to DataSource if you are going to add a table to DatatSource.
by jvierra
Wed May 24, 2017 10:15 am
Forum: PowerShell GUIs
Topic: Create a DataGridView and export to a csv
Replies: 55
Views: 267

Re: Create a DataGridView and export to a csv

Imam sorry. I gave you at least three clear examples of how to load or create a DataTable.

Take a break then come back and test until you understand what is happening.

A forum is not a good place to get individualized training in PowerShell.
by jvierra
Wed May 24, 2017 10:13 am
Forum: Windows PowerShell
Topic: Powershell Remote Pre-Staging to wds
Replies: 1
Views: 62

Re: Powershell Remote Pre-Staging to wds

HELP, Invoke-Command -Full

Read all and pay attention to how to pass arguments.

Go to advanced search