Search found 38 matches

by gutihz
Thu Oct 06, 2016 7:12 am
Forum: PowerShell GUIs
Topic: Code runs at least twice
Replies: 19
Views: 7612

Code runs at least twice

Hi Everyone, I have a weird problem. Basically I created a form where it asks for a computer name and then when the user clicks on the OK button, it's supposed to grab the users of the "offer Remote assistance helpers" group of that computer and write it in the text box. The code grabs the...
by gutihz
Fri May 13, 2016 12:35 pm
Forum: PowerShell GUIs
Topic: Add maskedtextbox to an array
Replies: 2
Views: 1330

Re: Add maskedtextbox to an array

I see what you mean. I tried going the way you suggested but still stuck. Computerlist is empty. I tried ELSE { $lblError.Text = "" $errorprovider1.SetError($this, ""); $txtList.AppendText($maskedtextbox1.Text) $CName = $maskedtextbox1.Text.Trim() $txtList.AppendText("`n&quo...
by gutihz
Wed May 11, 2016 1:13 pm
Forum: PowerShell GUIs
Topic: Add maskedtextbox to an array
Replies: 2
Views: 1330

Add maskedtextbox to an array

Hi everyone, I'm trying to create a form with two forms (Mainform and childform)that pings some computers and displays the result in a new tab on the childform. The mainform has a maskedtexbox (so the user can enter certain format), list box, a add button and a start button. What I'm trying to do is...
by gutihz
Fri Oct 16, 2015 7:58 am
Forum: PowerShell GUIs
Topic: JobProgressBar
Replies: 4
Views: 2812

Re: JobProgressBar

Hi David, Thanks for the reply. I don't think I follow you. Would you be able to give me an example? I tried doing : $selected = @("Test-1", "Test-2", "Test-3") $buttonStartJob_Click= { $buttonStartJob.Enabled = $false #Create a New Job using the Job Tracker Foreach ($i...
by gutihz
Thu Oct 15, 2015 12:13 pm
Forum: PowerShell GUIs
Topic: JobProgressBar
Replies: 4
Views: 2812

JobProgressBar

Hi Everyone, I saw David Corrales's post on "Creating Responsive Loops". https://www.sapien.com/blog/2011/07/15/primalforms-2011-creating-responsive-loops/ It's a great article. Very informative. I'm planning to use to call functions to copy things, however I'm kind of stuck. I can't figur...
by gutihz
Thu Sep 03, 2015 6:32 am
Forum: PowerShell Studio
Topic: Is this a Bug?
Replies: 6
Views: 2645

Re: Is this a Bug?

Hi David,

Surprisingly that doesn't work either. Very weird. Again, I assume this is a bug.
by gutihz
Wed Sep 02, 2015 6:24 am
Forum: PowerShell Studio
Topic: Is this a Bug?
Replies: 6
Views: 2645

Re: Is this a Bug?

Hi David,

Looks like I forgot to add but the $return is an empty array. I'll edit the initial post.
---$returns=@()---

As far as the results, I am trying on the same machine and the end results are different.
by gutihz
Tue Sep 01, 2015 12:16 pm
Forum: PowerShell Studio
Topic: Is this a Bug?
Replies: 6
Views: 2645

Is this a Bug?

Hi, I have the code below. If I build this in Powershell Studio 2015 (exe file) it returns me the array as one whole string(000301000). I copy the same exact code save it as .ps1 and run it and it gives me the result of what I'm looking for which is : 0 0 0 3010 0 0 Is this a bug with Sapien Powersh...
by gutihz
Mon Aug 03, 2015 2:15 pm
Forum: PowerShell GUIs
Topic: Load GUI before starting the processes
Replies: 10
Views: 6380

Re: Load GUI before starting the processes

Thank you both for your answers... @Dan, Sorry I'm kind of confused by what you mean to change activated event of the form? (Kind of new to this). I tried button1_click.performclick() but that didn't do the job. @jvierra, I agree with everything you said, however, I have limited time to finish this ...
by gutihz
Mon Aug 03, 2015 9:06 am
Forum: PowerShell GUIs
Topic: Load GUI before starting the processes
Replies: 10
Views: 6380

Re: Load GUI before starting the processes

Anyone? :roll: :roll: :roll: