Search found 14455 matches

by jvierra
Tue Jul 14, 2020 7:42 am
Forum: PowerShell GUIs
Topic: Comparing Original and Current Datatable values for each cell
Replies: 4
Views: 73

Re: Comparing Original and Current Datatable values for each cell

Other useful examples on how to detect and manages chages with PowerShell: https://www.google.com/search?newwindow=1&sxsrf=ALeKk02g1lQvTGApMyItZSWW_I3xDN7-9Q%3A1594737373599&ei=3cINX6iRJN6FytMPttg4&q=powershell+datatable+get+dirty+rows&oq=powershell+datatable+get+dirty+rows&gs_lcp=CgZwc3ktYWIQAzIICC...
by jvierra
Tue Jul 14, 2020 7:40 am
Forum: PowerShell GUIs
Topic: Comparing Original and Current Datatable values for each cell
Replies: 4
Views: 73

Re: Comparing Original and Current Datatable values for each cell

Start by learning what a data table is and try to understand what its properties and methods are designed to do:

DataRowVersion

System.Data.DataTable
by jvierra
Mon Jul 13, 2020 9:54 pm
Forum: PowerShell GUIs
Topic: Creating a Hamburger Menu/Navigation View style navigation
Replies: 4
Views: 70

Re: Creating a Hamburger Menu/Navigation View style navigation

The article you referenced seems to be a complete description of how to do this with WPF. What is it that is not happening. Dir you do the full example to see how it works? If so what is the issue you are having? Add the control to a form as indicated in the article and you will have your menu.
by jvierra
Mon Jul 13, 2020 1:02 pm
Forum: PowerShell
Topic: .net remote install
Replies: 11
Views: 1384

Re: .net remote install

$path = 'C:\classInstalls\ndp48-x86-x64-allos-enu.exe' Invoke-Command -ComputerName $computerName -ArgumentList "/q /norestart" -ScriptBlock { Start-Process -FilePath using:$path $args[0] -WorkingDirectory ?????????? } Do you need to include a WorkingDirectory? No. Installers use temp or the defaul...
by jvierra
Mon Jul 13, 2020 9:04 am
Forum: PowerShell GUIs
Topic: Creating a Hamburger Menu/Navigation View style navigation
Replies: 4
Views: 70

Re: Creating a Hamburger Menu/Navigation View style navigation

You can use a fly out panel and a menu bar to create a similar menu in WinForms.
by jvierra
Sun Jul 12, 2020 10:29 am
Forum: PowerShell
Topic: Issues with elevation after 1803 upgrade
Replies: 2
Views: 164

Re: Issues with elevation after 1803 upgrade

You have to specify to run the EXE elevated when you build it. Your issue is likely that UAC has been disabled on the older systems but not on the neer systems. No changes were made to the Admin account. I don't know where you heard that.
by jvierra
Fri Jul 10, 2020 5:10 pm
Forum: PowerShell GUIs
Topic: Powershell: SQLCMD, substituting variable for -serverinstance parameter
Replies: 4
Views: 102

Re: Powershell: SQLCMD, substituting variable for -serverinstance parameter

Here is an example of how to work with this: $paramInvokeSqlcmd = @{ Query = 'select * from VIEW_NAME order by instance_name' Database = 'DATABASE_NAME' ServerInstance = 'SQLSERVERNAME' } $wksList= invoke-sqlcmd @paramInvokeSqlcmd $DropDownBox = New-Object System.Windows.Forms.ComboBox $DropDownBox....
by jvierra
Fri Jul 10, 2020 5:02 pm
Forum: PowerShell GUIs
Topic: Powershell: SQLCMD, substituting variable for -serverinstance parameter
Replies: 4
Views: 102

Re: Powershell: SQLCMD, substituting variable for -serverinstance parameter

As I noted before. You have to load the second list from an event that can read the first events selection. Since we don't have your database there is no ways to demonstrate this easily. Start by learning about how forms are event driven. Here are some links that will help you understand how this wo...
by jvierra
Fri Jul 10, 2020 2:40 pm
Forum: PowerShell GUIs
Topic: Powershell: SQLCMD, substituting variable for -serverinstance parameter
Replies: 4
Views: 102

Re: Powershell: SQLCMD, substituting variable for -serverinstance parameter

Yu need to do that in an event by referencing the selectedIndex of the drop down or by referencing the value of the drop down.

This would be best if you posted your PSF file as a working example. Nothing in your code specifies any events. All work in forms is done in the form and control events.
by jvierra
Fri Jul 10, 2020 9:44 am
Forum: PowerShell GUIs
Topic: Comparing Original and Current Datatable values for each cell
Replies: 4
Views: 73

Re: Comparing Original and Current Datatable values for each cell

You can compare the data table original row to the changed row. The original row is also part of the data table until it is updated.