Search found 11479 matches

by jvierra
Mon Nov 13, 2017 9:42 pm
Forum: PowerShell GUIs
Topic: Output is formatted differently after build
Replies: 17
Views: 244

Re: Output is formatted differently after build

You need to custom format the output. I recommend using a DataGridView as it will auto size better. You can also use Format-Table and set the column widths.
by jvierra
Mon Nov 13, 2017 4:17 pm
Forum: PowerShell GUIs
Topic: Design of pstudio winforms apps re. pester
Replies: 8
Views: 231

Re: Design of pstudio winforms apps re. pester

thanks JV! [[Eventually Pester may be integrated with PSS...maybe.]] That would be _awesome_!! Don't quote me on that. It is just an assumption that, if it is possible, it would be useful. For now use the Pester CmdLets. Also do this: PS D:\scripts> find-module *pester* Version Name Repository ----...
by jvierra
Mon Nov 13, 2017 3:19 pm
Forum: PowerShell GUIs
Topic: Transpose Datagrid View Data
Replies: 2
Views: 92

Re: Transpose Datagrid View Data

You can also create a cross-tab query using T-Sql.

Here is a simple example: https://www.mssqltips.com/sqlservertip/ ... ql-server/
by jvierra
Mon Nov 13, 2017 12:45 pm
Forum: PowerShell GUIs
Topic: Design of pstudio winforms apps re. pester
Replies: 8
Views: 231

Re: Design of pstudio winforms apps re. pester

See these blog posts for some pointers.

https://www.sapien.com/blog/?s=pester

Eventually Pester may be integrated with PSS...maybe.
by jvierra
Mon Nov 13, 2017 11:25 am
Forum: PowerShell GUIs
Topic: Datagridview-Sorting. Error on selected row
Replies: 2
Views: 112

Re: Datagridview-Sorting. Error on selected row

When posting your code example please post the PSF file as an attachment. What you posted is not useful.
by jvierra
Mon Nov 13, 2017 10:55 am
Forum: PowerShell GUIs
Topic: DataGridView in Runspace Scrollbar error
Replies: 2
Views: 60

Re: DataGridView in Runspace Scrollbar error

Here is a workaround for the scrollbar issue. Turn off the scrollbars before creating the runspace. Add button to the form and use it to end the async invoke and turn on the scrollbars. $button1_Click={ $datagridview1.ScrollBars = 'None' $script:NewUser = [PowerShell]::Create().AddScript({ foreach (...
by jvierra
Mon Nov 13, 2017 10:05 am
Forum: PowerShell GUIs
Topic: DataGridView in Runspace Scrollbar error
Replies: 2
Views: 60

Re: DataGridView in Runspace Scrollbar error

This would be easier to manage if you used a "JobTracker" control set. Runspaces run on a separate thread and can have conflicts when trying to modify objects in another thread. The sync hash can create issues when trying to rapidly update a control on another thread. It is also hard to understand w...
by jvierra
Sun Nov 12, 2017 10:02 pm
Forum: PowerShell GUIs
Topic: ComboBox in tool strip SelectedIndexChanged has no effect
Replies: 2
Views: 70

Re: ComboBox in tool strip SelectedIndexChanged has no effect

Note also that you cannot just paste event code into the editor. It must be tied to the control through the designer. This is why you must read the assigned material. You cannot guess your way to learning forms. Even experienced programmers get lost the first time they try to build a form.
by jvierra
Sun Nov 12, 2017 9:59 pm
Forum: PowerShell GUIs
Topic: ComboBox in tool strip SelectedIndexChanged has no effect
Replies: 2
Views: 70

Re: ComboBox in tool strip SelectedIndexChanged has no effect

On the "Help" tab there is a button o n the right. It is the product manual. You should read it before going further. On the same tab is a link to "GUI Related Articles". You should read the articles on designing forms and the related GUI articles you will find there. On the toolbox you can right cl...
by jvierra
Sun Nov 12, 2017 3:55 pm
Forum: PowerShell GUIs
Topic: Does anyone have a working example of selectedindexchanged (combobox)
Replies: 14
Views: 241

Re: Does anyone have a working example of selectedindexchanged (combobox)

Without all of your code I have no idea what you are trying to do.
Look at the full example that I posted much earlier.