Search found 13722 matches

by jvierra
Tue Sep 17, 2019 3:23 pm
Forum: PowerShell GUIs
Topic: How to use the Help Provider
Replies: 2
Views: 19

Re: How to use the Help Provider

Note that, by default, the help provider can be tied t any control by setting the control's "HelpString" property to show the text you wish to display.
by jvierra
Tue Sep 17, 2019 2:41 pm
Forum: PowerShell GUIs
Topic: Reorder list box by drag and drop
Replies: 3
Views: 28

Re: Reorder list box by drag and drop

I should also note that there is no way to use drag/drop to reorder items in a single ListBox. You would have to write custom code to select and move an item in the list order. You can use the "MouseDown" event to select the item but getting the target will require some difficult coding that can dis...
by jvierra
Tue Sep 17, 2019 11:08 am
Forum: Windows PowerShell
Topic: Filtering a DT for a Datagridview
Replies: 2
Views: 35

Re: Filtering a DT for a Datagridview

To filter the grid must be sourced from a table then just set the default view on the table.

$datagridview.DataSource = $dt
$dt.DefaultView.RowFilter = "Status LIKE '*DENIED*'"


This will immediately filter the rows.
by jvierra
Tue Sep 17, 2019 11:04 am
Forum: PowerShell GUIs
Topic: Reorder list box by drag and drop
Replies: 3
Views: 28

Re: Reorder list box by drag and drop

Here is a short tutorial on how to use drag/drop with listboxes:
https://www.codeproject.com/Articles/20 ... r-s-Tutori
by jvierra
Tue Sep 17, 2019 11:02 am
Forum: PowerShell GUIs
Topic: Reorder list box by drag and drop
Replies: 3
Views: 28

Re: Reorder list box by drag and drop

You will have to enable drag/drop for the ListBox and write the code to manage the drag/drop events.
by jvierra
Tue Sep 17, 2019 11:01 am
Forum: PowerShell GUIs
Topic: Include scripts in PowerShell GUI project
Replies: 1
Views: 25

Re: Include scripts in PowerShell GUI project

Yes. Have you tried this in your form? Any scripts or modules can be loaded.
You need to use the script home folder and use the full path to the script.
by jvierra
Tue Sep 17, 2019 10:41 am
Forum: PowerShell GUIs
Topic: How to use the Help Provider
Replies: 2
Views: 19

Re: How to use the Help Provider

Here is the documentation for the "Help" provider. It will explain how to use help in a Form. You will have to use the Windows Help SDK to create a help file for your form.

https://docs.microsoft.com/en-us/dotnet ... mework-4.8
by jvierra
Mon Sep 16, 2019 8:14 am
Forum: Windows PowerShell
Topic: Executable causing some issues, (0xc0000142)
Replies: 7
Views: 650

Re: Executable causing some issues, (0xc0000142)

You have to quit the script after the exception so you don't get repeat and useless exceptions. The first exception is the one that tells you what went wrong.
by jvierra
Fri Sep 13, 2019 12:35 pm
Forum: PowerShell GUIs
Topic: Did Call-Form get deprecated?
Replies: 7
Views: 128

Re: Did Call-Form get deprecated?

TO e more explicit. To rename any control or form correctly right-click on the form or control and select "rename" from the menu. This will rename the object and all references to the object in the whole project. When learning forms be slow and careful. Forms are complex collections of objects and t...
by jvierra
Fri Sep 13, 2019 12:16 pm
Forum: PowerShell GUIs
Topic: Did Call-Form get deprecated?
Replies: 7
Views: 128

Re: Did Call-Form get deprecated?

How did you rename the form? If you use the "rename" menu item then it will work.