Search found 13807 matches

by jvierra
Wed Oct 23, 2019 7:49 am
Forum: PowerShell GUIs
Topic: Search items and checked from $checkedlistbox control
Replies: 3
Views: 53

Re: Search items and checked from $checkedlistbox control

Unfortunately there is really no way to manage a checked list box in that way. Changing the data will reset the checks. TO do this you would need to use a DataGeidView or a custom control. I recommend using a move item method between the to box and a second listbox. This would help to allow a "scatt...
by jvierra
Tue Oct 22, 2019 5:36 pm
Forum: PowerShell GUIs
Topic: Search items and checked from $checkedlistbox control
Replies: 3
Views: 53

Re: Search items and checked from $checkedlistbox control

This is how to filter a listbox/combobox.
by jvierra
Tue Oct 22, 2019 11:53 am
Forum: PowerShell GUIs
Topic: Connect-AzAccount command not executing in Sapien GUI Application
Replies: 2
Views: 43

Re: Connect-AzAccount command not executing in Sapien GUI Application

From GitHub the issue appears to be with the module and will have to wait for a fix to be released as noted in the bug report.
by jvierra
Sun Oct 20, 2019 2:33 am
Forum: PowerShell GUIs
Topic: Datagrid binding
Replies: 7
Views: 225

Re: Datagrid binding

One textbox - one column. That is how it works. Why not just type the values directly into the grid columns? That is how the grid is designed to work.
by jvierra
Sun Oct 20, 2019 2:06 am
Forum: PowerShell GUIs
Topic: Datagrid binding
Replies: 7
Views: 225

Re: Datagrid binding

I posted the answer in my previous post. You must add the textbox as a column in an array of column text values. Try the code example I posted after reading the link I posted.
by jvierra
Sun Oct 20, 2019 1:43 am
Forum: PowerShell GUIs
Topic: Datagrid binding
Replies: 7
Views: 225

Re: Datagrid binding

You cannot at plain text to a grid. You must add rows and satisfy all columns for each row. See: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.datagridviewrowcollection.add?view=netframework-4.8#System_Windows_Forms_DataGridViewRowCollection_Add_System_Object___ $row = @('col1','c...
by jvierra
Fri Oct 18, 2019 8:13 pm
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 20
Views: 326

Re: Modal forms

Here is the missing piece that you need to understand how to easily access the objects in a remote form.
by jvierra
Fri Oct 18, 2019 9:59 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 20
Views: 326

Re: Modal forms

Yes
by jvierra
Thu Oct 17, 2019 12:04 pm
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 20
Views: 326

Re: Modal forms

I modified the example to demonstrate how to communicate with a form via the synchash. It shows two methods for altering the a second main form from the creating form. I use the name "Parent" in the synchash but the form is not a true "Parent" as defined by the form's "Parent" property but it does p...
by jvierra
Thu Oct 17, 2019 10:00 am
Forum: PowerShell GUIs
Topic: Modal forms
Replies: 20
Views: 326

Re: Modal forms

Yes - that form is NOT a modal form. It is a form running in a separate runspace. The only way to access the form is to modify variables in the synchash and have to child form detect when the variable is modified.