Search found 14046 matches

by jvierra
Wed Jan 22, 2020 9:07 am
Forum: Windows PowerShell
Topic: Variable and .visible fonction
Replies: 2
Views: 38

Re: Variable and .visible fonction

Your use of $node seems to indicate that this is a TreeView question. See the following article section for help using images with nodes.

https://info.sapien.com/index.php/guis/ ... #imagelist
by jvierra
Wed Jan 22, 2020 9:03 am
Forum: Windows PowerShell
Topic: Variable and .visible fonction
Replies: 2
Views: 38

Re: Variable and .visible fonction

That is correct. The variable is a string and strings do not have a "visible" property.

$icoActivation = '$' + $node + 'KoStatus'
$icoActivation.GetType()


Why would you want a string to be visible. I suspect you have an icon object that is what you really want to make visible,
by jvierra
Sun Jan 19, 2020 12:13 am
Forum: Windows PowerShell
Topic: How to let PowerShell x86 return an object while call powershell x86 cmdlet from powershell x64
Replies: 1
Views: 144

Re: How to let PowerShell x86 return an object while call powershell x86 cmdlet from powershell x64

You cannot return objects from external programs. You can only return strings. YOU could output XML and turn that into an object.

Get-Service spooler | convertto-xml
by jvierra
Sun Jan 19, 2020 12:09 am
Forum: PowerShell GUIs
Topic: Can I move GroupBox from a tab to another tab in TabControl?
Replies: 3
Views: 189

Re: Can I move GroupBox from a tab to another tab in TabControl?

"CopyTo" is a programmatic method that we use in code. It is not a part of the designer.
by jvierra
Wed Jan 15, 2020 1:10 am
Forum: Windows PowerShell
Topic: Windows Service - Stop Service - Restart Service
Replies: 7
Views: 827

Re: Windows Service - Stop Service - Restart Service

That message box is produced by the system and is not part of the service. Think about it, iIf a service can't start how can it display anything. A process can only display output if it can run.
by jvierra
Tue Jan 14, 2020 7:20 am
Forum: Windows PowerShell
Topic: Windows Service - Stop Service - Restart Service
Replies: 7
Views: 827

Re: Windows Service - Stop Service - Restart Service

Services cannot display a UI because they are not run in an interactive session.
by jvierra
Sun Jan 12, 2020 11:24 am
Forum: PowerShell GUIs
Topic: Datagridview
Replies: 5
Views: 161

Re: Datagridview

Yup. I did the same thig the first time I used the DGV.

It is always the best approach to review the online docs for any control you plane to use. It will save you a lot of wasted time.
by jvierra
Sun Jan 12, 2020 11:09 am
Forum: PowerShell GUIs
Topic: Datagridview
Replies: 5
Views: 161

Re: Datagridview

You have to make the data name the same as the column name. Just changing the display name won't bind the column to the column.
by jvierra
Sun Jan 12, 2020 10:37 am
Forum: PowerShell GUIs
Topic: Datagridview
Replies: 5
Views: 161

Re: Datagridview

You have to add the columns after you import or pre-create all columns matching the names in the CSV,
by jvierra
Fri Jan 10, 2020 4:32 am
Forum: PowerShell GUIs
Topic: Can I move GroupBox from a tab to another tab in TabControl?
Replies: 3
Views: 189

Re: Can I move GroupBox from a tab to another tab in TabControl?

You can copy it from the controls collection on one tab to the controls collection on another tab using the "CopyTo" method of the collection.