Search found 55 matches

by ClipperXTP
Wed May 27, 2020 1:08 pm
Forum: PowerShell GUIs
Topic: Datagridview and System.Data.DataTable
Replies: 7
Views: 2673

Re: Datagridview and System.Data.DataTable

This is what I have so far but I am struggling with manipulating the datatable $Assignments to just get the two columns I want and the amended column headers $assignments_new = $assignments | Select @{Name = "Server Name";Expression = {"$($_.Name) }, @{Name = "Package ID Name&quo...
by ClipperXTP
Wed May 27, 2020 12:46 pm
Forum: PowerShell GUIs
Topic: Datagridview and System.Data.DataTable
Replies: 7
Views: 2673

Re: Datagridview and System.Data.DataTable

Thanks very much! So far so good. What I would like to do is: 1. Just select two columns from the datatable to show in the datagridview, Name and PackageID. Right now I get all of them. I have looked high and low for how to do this, any examples I can find are C# and I am struggling to translate and...
by ClipperXTP
Wed May 27, 2020 6:51 am
Forum: PowerShell GUIs
Topic: Datagridview and System.Data.DataTable
Replies: 7
Views: 2673

Datagridview and System.Data.DataTable

Hi I am having problems getting my head around how to update a datagridview with the content of two columns from $assignments which is a System.Data.DataTable $assignments gives the following output in the ISE: Name : TEXXA2 FriendlyName :Tex2 Type : Vert PackageID : 13435 Name : Metta2 FriendlyName...
by ClipperXTP
Wed May 27, 2020 6:30 am
Forum: PowerShell GUIs
Topic: Change Tab Focus by Mouse Double Click Event
Replies: 12
Views: 3247

Re: Change Tab Focus by Mouse Double Click Event

Hi - I have changed to select - it still does not take me to the other tab?..

$button1_Click={
#TODO: Place custom script here
$textbox_computername.Select()
}
by ClipperXTP
Wed May 27, 2020 6:00 am
Forum: PowerShell GUIs
Topic: Change Tab Focus by Mouse Double Click Event
Replies: 12
Views: 3247

Re: Change Tab Focus by Mouse Double Click Event

Sorry, in this instance I want to test performing an action with a control in one page tab to see if it will change the focus to another page tab. As a test I set the button1 click event on one tab page to change the focus to my text input box on the other tab page. Running the project and clicking ...
by ClipperXTP
Wed May 27, 2020 5:46 am
Forum: PowerShell GUIs
Topic: Change Tab Focus by Mouse Double Click Event
Replies: 12
Views: 3247

Re: Change Tab Focus by Mouse Double Click Event

No in this instance I am just trying to test the focus method. Should I expect my example above to work? Thanks
by ClipperXTP
Wed May 27, 2020 5:27 am
Forum: PowerShell GUIs
Topic: Change Tab Focus by Mouse Double Click Event
Replies: 12
Views: 3247

Re: Change Tab Focus by Mouse Double Click Event

Hi - I have tried the following - I put a button on a different tab page as a test, clicking the button doesn't change the focus to the tab page where the text box is? What am I missing? Thanks

$button1_Click={
#TODO: Place custom script here
$textbox_computername.Focus()
}
by ClipperXTP
Wed May 27, 2020 12:56 am
Forum: PowerShell GUIs
Topic: Change Tab Focus by Mouse Double Click Event
Replies: 12
Views: 3247

Change Tab Focus by Mouse Double Click Event

Hi I have a project with two tab pages. The first tab I use to query PCs. There is a textbox where the PC name is entered and a button my users click and PC info is returned. The second tab I use to query user details. On the User tab page, the user naturally has PCs that are assigned to them. These...
by ClipperXTP
Wed May 06, 2020 3:40 am
Forum: PowerShell GUIs
Topic: DataGridView - Vertical Scroll Always Visible?
Replies: 2
Views: 2154

Re: DataGridView - Vertical Scroll Always Visible?

OK thanks for the info
by ClipperXTP
Wed May 06, 2020 2:40 am
Forum: PowerShell GUIs
Topic: DataGridView - Vertical Scroll Always Visible?
Replies: 2
Views: 2154

DataGridView - Vertical Scroll Always Visible?

Hi Can you let me know how to always display vertical scrollbar in a datagridview? My datagridview is being updated by a script which returns an array. My gui has a border on the datagridview so there is not just dead space there before it gets populated. If my results arrray has more that 5 lines, ...