Search found 14988 matches

by jvierra
Tue Dec 07, 2021 3:06 pm
Forum: PowerShell GUIs
Topic: TreeView FullPath
Replies: 3
Views: 74

Re: TreeView FullPath

The attached PSF will give you some good examples on using a TreeView with the registry.
by jvierra
Tue Dec 07, 2021 2:49 pm
Forum: PowerShell GUIs
Topic: TreeView FullPath
Replies: 3
Views: 74

Re: TreeView FullPath

What path are you looking for? There is a "path" property on each node.
by jvierra
Tue Dec 07, 2021 2:47 pm
Forum: PowerShell
Topic: Powershell to Clean up txt file
Replies: 1
Views: 64

Re: Powershell to Clean up txt file

The complexity and number of question as you are asking is beyond the scope of a basic tech forum. First you are asking about how to use RegEx. This is not a PowerShell question but a specific issue about how to use RegEx. My first suggestion is to take it in pieces then use the following linked sit...
by jvierra
Sat Dec 04, 2021 10:30 pm
Forum: PowerShell GUIs
Topic: Checkbox flatappearance.checkedbackcolor didn't work
Replies: 4
Views: 515

Re: Checkbox flatappearance.checkedbackcolor didn't work

Please read the following link very carefully. Be aware that the backcolor of the Checkbox is dynamic and sets only when the CheckBox is checked AND COMMITED
https://stackoverflow.com/questions/544 ... or-uncheck.
by jvierra
Tue Nov 30, 2021 11:26 pm
Forum: PowerShell GUIs
Topic: Button Yes No
Topic: Button Yes No
Replies: 5
Views: 265

Re: Button Yes No

You have to follow all of the instructions in my reply. The code is not the problem. First learn basic PowerShell then spend some time learning WinForms. Guessing will just waste your time. The button is likely set to return a dialog result. Remeber we can't see your sreen or yuour code and we canno...
by jvierra
Tue Nov 30, 2021 9:48 pm
Forum: PowerShell GUIs
Topic: Button Yes No
Topic: Button Yes No
Replies: 5
Views: 265

Re: Button Yes No

Because you are blindly copying things from teh Internet you are using code that is either unnecessary or code that won' work in WInForms. $buttonLater_Click={ switch ([System.Windows.MessageBox]::Show('Do you want to complete later?', 'Confirm', 'YesNo', 'Warning')){ 'Yes' { $dt = Get-Date -Format ...
by jvierra
Tue Nov 30, 2021 9:35 pm
Forum: PowerShell GUIs
Topic: Button Yes No
Topic: Button Yes No
Replies: 5
Views: 265

Re: Button Yes No

Be sure the button properties do not define a DialogResult. By default, a button may be defined to terminate the form.
by jvierra
Tue Nov 30, 2021 2:52 pm
Forum: PowerShell GUIs
Topic: posh studio EXE gets an ODBC connection error
Replies: 13
Views: 1233

Re: posh studio EXE gets an ODBC connection error

See "help about scopes" It doesn't matter where you put it, the object has to be "in scope". and object declared in a module or function will dispapear from all scopes when the function exits. It is better to vae a function that returns a connection object or, better, a function that returns a Data...
by jvierra
Sun Nov 28, 2021 8:49 pm
Forum: PowerShell GUIs
Topic: $Treeview focus
Replies: 5
Views: 343

Re: $Treeview focus

Again, start with the docs. You can clear a set object by assigning the object reference to "$null"
by jvierra
Sun Nov 28, 2021 3:32 pm
Forum: PowerShell GUIs
Topic: Programatically add a new row to a databound datagridview.
Replies: 2
Views: 213

Re: Programatically add a new row to a databound datagridview.

Just add a new row to the DataTable object. See docs for DataTable and examples of how to add a row.