Search found 14826 matches

by jvierra
Fri Jun 18, 2021 1:56 am
Forum: PowerShell GUIs
Topic: functions and parameters
Replies: 4
Views: 46

Re: functions and parameters

You have only one form so a function is not useful. If you want to generalize eavh form with a function you will have to exefdcute the function from inside the form and call it at the end of the form code before the ShowDialog call. The function will work on any form if you write it like this: funct...
by jvierra
Thu Jun 17, 2021 3:53 pm
Forum: PowerShell GUIs
Topic: Run code after gui is loaded
Replies: 7
Views: 64

Re: Run code after gui is loaded

Sorry but this is not product support. There are other forums for product support. ALso note that basic programming and reading instructions are not part of any support for any product. The links are not videos they are explanations and instructions on how to proceed to do what you ask. Why should I...
by jvierra
Thu Jun 17, 2021 11:18 am
Forum: PowerShell GUIs
Topic: Run code after gui is loaded
Replies: 7
Views: 64

Re: Run code after gui is loaded

See the following articles: https://info.sapien.com/index.php/guis/gui-advanced-tips/creating-responsive-loops https://info.sapien.com/index.php/guis/gui-advanced-tips/powershell-studio-creating-responsive-forms There are many articlkes on that page that you will need to review to learn how to work ...
by jvierra
Thu Jun 17, 2021 5:27 am
Forum: PowerShell GUIs
Topic: functions and parameters
Replies: 4
Views: 46

Re: functions and parameters

You have to use objects. Just pass teh Window object and add to that controls collection. WHat you are trying to do is totally unnecessary. Just add a copyright to each window. In the end it doesn't accomplish much to try to change a windo that doesn't yet exist. You cannot add to an object that has...
by jvierra
Thu Jun 10, 2021 11:20 pm
Forum: PowerShell GUIs
Topic: textbox appendtext
Replies: 3
Views: 590

Re: textbox appendtext

This is how to dereference an object:
  1. $results.Lines += 'First Name is ' + $FirstName.Text
  2. $results.Lines += 'Last Name is ' + $LastName.Text
This automatically adds a linebreak.
by jvierra
Tue Jun 08, 2021 2:42 pm
Forum: PowerShell
Topic: Import iPhone Photos
Replies: 1
Views: 864

Re: Import iPhone Photos

You have to post this question in an Apple iPhone forum or iPhone developer forum. Apple has an API and a driver that mounts an iPhone storeagte as a drive. What you are seeing is the file specs. YOu have to enumerate the objects and read them in as streams which is an advanced programming method. D...
by jvierra
Mon Jun 07, 2021 11:06 pm
Forum: PowerShell
Topic: Import csv users and run powershell script
Replies: 6
Views: 2490

Re: Import csv users and run powershell script

You have to slow down and do it in small steps. YOu are just shotgunning everything and no one can keep uup with anything you are doing. It would also be useful if you formatted your code correctly. Never use Get-Content with a CSV, Be sure you have a realy CSV. MOst people have no idea what a CSV i...
by jvierra
Sun Jun 06, 2021 11:13 pm
Forum: PowerShell GUIs
Topic: Urgent!! How to make picture available when running exe on different PCs
Replies: 2
Views: 1457

Re: Urgent!! How to make picture available when running exe on different PCs

Images are embedded. Just specify the image and PowerShell Studio will encode and embed it, theat is, don't load it manually just add it to the object using the objects image property.
by jvierra
Sun Jun 06, 2021 12:04 am
Forum: PowerShell GUIs
Topic: Load data after SelectedIndexChange
Replies: 2
Views: 1681

Re: Load data after SelectedIndexChange

What have you tried? You have given no information that can help guess at any possible answer. When loading a Combobox with objects load the whole object then when an even occurs you will know the exact object and all properties. No idea what you mean by "query" a CSV. A CSV is a tectfile. Loaded as...
by jvierra
Fri Jun 04, 2021 4:38 pm
Forum: PowerShell
Topic: Import csv users and run powershell script
Replies: 6
Views: 2490

Re: Import csv users and run powershell script

One quick look. You seem to be saying that you are trying to disable and move some users. WHy "sleep"? YOu can get, disable, move anyty user in one command. No need for sleep or multiple statements. Use the pipeline. You are also tryinf to do one user and at the same time remove all users. Tou remov...