Search found 52 matches

by supportMIB
Tue Sep 17, 2019 9:08 am
Forum: Windows PowerShell
Topic: Filtering a DT for a Datagridview
Replies: 2
Views: 1769

Re: Filtering a DT for a Datagridview

The above code worked on another checkbox, so I assume I must have screwed the one I was testing on up.

Is there a way to pull a distinct value from a DT?

I have a column called 'website' that I would like to go through the DT and only pull unique values for
by supportMIB
Tue Sep 17, 2019 7:41 am
Forum: Windows PowerShell
Topic: Filtering a DT for a Datagridview
Replies: 2
Views: 1769

Filtering a DT for a Datagridview

I have a datatable that is populated from a text file on form load using the below code. It populates the last 1000 lines of a log file to a datagridview which works fine, but I'd like to have a checkbox which filters a single column but I'm unsure how to create a filter on the DT to achieve this. $...
by supportMIB
Wed Aug 02, 2017 7:30 am
Forum: Windows PowerShell
Topic: Querying DataGridView
Replies: 1
Views: 888

Querying DataGridView

I have a datagrid view that is populated with: $Global:coll = (Get-ADUser -filter * -Properties PasswordNeverExpires, passwordlastset, lastlogon, enabled | select Name, Enabled, PasswordNeverExpires, PasswordLastset, @{ name = "LastLogon"; Expression = ({ get-date $_.lastlogon -UFormat "%D %R" }) })...
by supportMIB
Thu Apr 20, 2017 7:00 am
Forum: PowerShell Studio
Topic: Child form question
Replies: 2
Views: 754

Re: Child form question

Very helpful link, thank you!
by supportMIB
Wed Apr 19, 2017 12:26 pm
Forum: PowerShell Studio
Topic: Child form question
Replies: 2
Views: 754

Child form question

I created a multi form project, i click a button called 'notes' and it opens the child form, but I want the child form to have access to variables or controls from the main form...how can i achieve this? I have a listobx on the main form, when clicked I want the child form to open up and have a labe...
by supportMIB
Mon Mar 27, 2017 9:24 am
Forum: PowerShell GUIs
Topic: Comma Seperated to Datagridview?
Replies: 2
Views: 830

Re: Comma Seperated to Datagridview?

Nevermind...my 2nd example does work...but only without the typos! ($split vs $spilt) Any other examples would be greatly appreciated though! Edit..again...: so this only works if there is only 1 row...multiple rows does not work $i = 0 foreach ($name in $names) { $spilt = $name.split(",") for ($x =...
by supportMIB
Mon Mar 27, 2017 8:48 am
Forum: PowerShell GUIs
Topic: Comma Seperated to Datagridview?
Replies: 2
Views: 830

Comma Seperated to Datagridview?

Hello, I have an array of comma seperated values that look like: $names Files, True, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, True Finance, True, True, False, False, False, False, False, False, False, False, False, False, False, F...
by supportMIB
Tue Jan 24, 2017 2:22 pm
Forum: Windows PowerShell
Topic: cellenter and cellleave not working
Replies: 5
Views: 1265

Re: cellenter and cellleave not working

That really was a valuable lesson...really.

I see you added the events cellleave and cellenter. Thank you again for making me figure that out.
by supportMIB
Tue Jan 24, 2017 12:32 pm
Forum: Windows PowerShell
Topic: cellenter and cellleave not working
Replies: 5
Views: 1265

Re: cellenter and cellleave not working

Attached the project

Thanks again for your help!
by supportMIB
Tue Jan 24, 2017 10:46 am
Forum: Windows PowerShell
Topic: cellenter and cellleave not working
Replies: 5
Views: 1265

cellenter and cellleave not working

I am trying to get this to work...it is pulling some info from a database and placing it into a datagridview. I have some things I want it to update when moving up and down the rows in the datagridview, but I cant seem to get it to work. I added a simple messagebox prompt and it is not working. Wha...