Search found 14828 matches

by jvierra
Fri Jun 18, 2021 2:41 am
Forum: PowerShell GUIs
Topic: functions and parameters
Replies: 7
Views: 66

Re: functions and parameters

Original post fixed.
by jvierra
Fri Jun 18, 2021 2:39 am
Forum: PowerShell GUIs
Topic: functions and parameters
Replies: 7
Views: 66

Re: functions and parameters

Sorry but I screwed up the instructions. I will fix it.
by jvierra
Fri Jun 18, 2021 1:56 am
Forum: PowerShell GUIs
Topic: functions and parameters
Replies: 7
Views: 66

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: 69

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: 69

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: 7
Views: 66

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: 596

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: 865

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: 2519

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: 1459

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.