Search found 45 matches

by Chris_Ediger
Thu Aug 19, 2021 2:33 pm
Forum: PowerShell
Topic: How to completely stop execution of script
Replies: 3
Views: 4281

Re: How to completely stop execution of script

I don't care what it does I just need it to stop executing if the condition is true and .Close() does not do this.
And thanks but that link isn't particularly helpful to me. I asked a specific question and you gave a very general answer.
by Chris_Ediger
Thu Aug 19, 2021 12:55 pm
Forum: PowerShell
Topic: How to completely stop execution of script
Replies: 3
Views: 4281

How to completely stop execution of script

I have a GUI tool that I need to stop executing if a certain condition is met. if ($doesUserExist) { $distName = (Get-ADUser -Filter { UserPrincipalName -eq $upn } -Server MYSERVER).DistinguishedName [System.Windows.Forms.MessageBox]::Show("User already exists in Active Directory. `n$distName&q...
by Chris_Ediger
Mon Aug 24, 2020 12:31 pm
Forum: Customer Service
Topic: Extending license
Replies: 1
Views: 4224

Extending license

My license is currently up for renewal on November 30. Is there any way to renew before that date?
by Chris_Ediger
Fri Apr 03, 2020 5:40 pm
Forum: PowerShell GUIs
Topic: Create list from items in combobox
Replies: 9
Views: 2756

Re: Create list from items in combobox

Awesome. Thanks for all that. I have a pretty good grasp of PowerShell it's the forms stuff that I'm out of my depth with.
by Chris_Ediger
Fri Apr 03, 2020 2:47 pm
Forum: PowerShell GUIs
Topic: Create list from items in combobox
Replies: 9
Views: 2756

Re: Create list from items in combobox

Ok, I've mentioned this before but I'm pretty new to this programming thing and I'm really learning as I go. I'm not trying to have someone write code for me but I really don't even know what question to ask or what to search for. I appreciate that you gave me a couple links to information but that ...
by Chris_Ediger
Fri Apr 03, 2020 2:09 pm
Forum: PowerShell GUIs
Topic: Create list from items in combobox
Replies: 9
Views: 2756

Re: Create list from items in combobox

Is there a way to remove specific items from the listbox? Say I wanted to remove a user from the list. Can I select that user and right click/remove?
by Chris_Ediger
Fri Apr 03, 2020 11:31 am
Forum: PowerShell GUIs
Topic: Convert regular form to one with tabs?
Replies: 5
Views: 2071

Re: Convert regular form to one with tabs?

I think I understand now
by Chris_Ediger
Fri Apr 03, 2020 9:07 am
Forum: PowerShell GUIs
Topic: Convert regular form to one with tabs?
Replies: 5
Views: 2071

Convert regular form to one with tabs?

I have a tool that I'd like to convert to a tabbed form. Is there a way to import or copy over from my regular form to the tabbed form?
by Chris_Ediger
Thu Apr 02, 2020 9:20 am
Forum: PowerShell GUIs
Topic: Create list from items in combobox
Replies: 9
Views: 2756

Re: Create list from items in combobox

Cool. Didn't know I could do that. Thanks!
by Chris_Ediger
Thu Apr 02, 2020 8:55 am
Forum: PowerShell GUIs
Topic: Create list from items in combobox
Replies: 9
Views: 2756

Re: Create list from items in combobox

Ok, I see that. How do I get the name in the combobox to the listbox? I have an "Add" button that does this $listbox.Text = $combobox.Text but nothing gets copied to the list box.