Search found 14477 matches

by jvierra
Thu Aug 06, 2020 4:30 am
Forum: PowerShell GUIs
Topic: datagridview not populating
Replies: 16
Views: 170

Re: datagridview not populating

The Azure CmdLets are not compatible with forms in many cases. You can try to run the command in a job and see if that allows it to complete.
by jvierra
Thu Aug 06, 2020 4:14 am
Forum: PowerShell GUIs
Topic: datagridview not populating
Replies: 16
Views: 170

Re: datagridview not populating

And where is it hanging? It can only be hanging on the Get-AzVM.
by jvierra
Thu Aug 06, 2020 2:36 am
Forum: PowerShell GUIs
Topic: datagridview not populating
Replies: 16
Views: 170

Re: datagridview not populating

What script pane? Right click opens a context menu. You have to be clear and provide complete information. Create a simple form with a button and a grid and lace my code in the button to see how it works.
by jvierra
Thu Aug 06, 2020 1:06 am
Forum: PowerShell GUIs
Topic: datagridview not populating
Replies: 16
Views: 170

Re: datagridview not populating

No idea what you mean by right-clicking. A button takes a single click.

The Get-AzVM command can hang which has little to do with how to load the grid. Without more accurate information there is no way to advise you.
by jvierra
Wed Aug 05, 2020 12:38 pm
Forum: PowerShell GUIs
Topic: datagridview not populating
Replies: 16
Views: 170

Re: datagridview not populating

Code: Select all

$button1_Click={
	#TODO: Place custom script here$
	$s = Get-Service
	$t = ConvertTo-DataTable -InputObject $s
	$datagridview1.DataSource = $t
}
by jvierra
Mon Aug 03, 2020 3:01 am
Forum: PowerShell GUIs
Topic: datagridview event firing
Replies: 15
Views: 275

Re: datagridview event firing

What does that mean? Columns are not added together. Are you trying to concatenate two properties into one column? $users = Get-AdUser -Properties GivenName,SurName -Filter { Surname -like $searchString } -SearchBase "OU=xxx,DC=xxx,DC=xxx,DC=xxx,DC=xxx" | Select-Object @{n='Check';e={$false}},@{n='N...
by jvierra
Mon Aug 03, 2020 2:32 am
Forum: PowerShell GUIs
Topic: datagridview event firing
Replies: 15
Views: 275

Re: datagridview event firing

Don't define any columns. The grid will auto-create the columns correctly.
by jvierra
Mon Aug 03, 2020 1:25 am
Forum: PowerShell GUIs
Topic: datagridview event firing
Replies: 15
Views: 275

Re: datagridview event firing

Sorry but your code makes no sense. You cannot name a column as a Boolean. A column must have a name and a value. $users = Get-AdUser -Filter { Surname -like $searchString } -SearchBase "OU=xxx,DC=xxx,DC=xxx,DC=xxx,DC=xxx" | Select-Object @{n='Check';e={$false}},GivenName, Surname $datagridview1.Dat...
by jvierra
Mon Aug 03, 2020 1:07 am
Forum: PowerShell GUIs
Topic: datagridview event firing
Replies: 15
Views: 275

Re: datagridview event firing

Your method of getting the data does not work correctly with a DataGridView. Without the complete code there is really no way to understand the issue you are asking about. I can crate a grid that the checkbox events correctly on and teh code I posted works as expected. If you do not create and load ...
by jvierra
Sun Aug 02, 2020 5:33 pm
Forum: PowerShell GUIs
Topic: Handling hi res
Replies: 12
Views: 214

Re: Handling hi res

It depends on the form and if the form was designed with a consistency and layout that lends it self to translation.
You need to look at the Sapien blogs that discuss how to work with this. Look in the InfoCenter for articles on working with hi-rez monitors.