datagridview not populating
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: datagridview not populating
I suppose that is where the problem might be as clicking on button2 causes the form to freeze. Just do not know how to direct the output of the get-azvm to datagridview. Is there a way to troubleshoot?
Re: datagridview not populating
Wonder what is the official line with regard to Azure commands and PowerShell Studio. As our most resources are in Azure, and if they are not supported with PowerShell Studio, then we would not be beneficial using this nice software.
Thanks.
Thanks.
- Alexander Riedel
- Posts: 8489
- Last visit: Thu Apr 18, 2024 9:59 am
- Been upvoted: 37 times
Re: datagridview not populating
The official line is that some Azure commands can have threading requirements that collide with those of Windows Forms. Both are Microsoft Technologies and as you can imagine we have no control over either.
That has little to do with PowerShell Studio. But we continuously work to provide ways to integrate technologies with one another that otherwise won't work.
In your case, you will have to learn to use a job tracker and run some commands or scriptblocks in a separate job. Writing software that is asynchronous and event driven is quite different from creating linear command line scripts, that is certain. But since user interface have to react to software events as well as user input, that is simply a requirement.
That has little to do with PowerShell Studio. But we continuously work to provide ways to integrate technologies with one another that otherwise won't work.
In your case, you will have to learn to use a job tracker and run some commands or scriptblocks in a separate job. Writing software that is asynchronous and event driven is quite different from creating linear command line scripts, that is certain. But since user interface have to react to software events as well as user input, that is simply a requirement.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: datagridview not populating
You may find the following article helpful:
https://www.sapien.com/blog/2018/08/07/ ... functions/
https://www.sapien.com/blog/2018/08/07/ ... functions/
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.