Search found 441 matches

by stevens
Tue Jan 26, 2021 1:44 am
Forum: PowerShell GUIs
Topic: Bug GUI
Replies: 4
Views: 301

Re: Bug GUI

Strange thing is: when I launch GUI on local machine, everything works fine. When I launch GUI on another machine, it freezes. So I figured, I launch another Powershell on the other machine, then launch GUI (like I do on local machine), but also then it freezes which doesn't make a lot of sense sinc...
by stevens
Wed Jan 13, 2021 3:41 am
Forum: PowerShell GUIs
Topic: Bug GUI
Replies: 4
Views: 301

Re: Bug GUI

Maybe a workaround to implement?
by stevens
Wed Jan 13, 2021 3:40 am
Forum: PowerShell GUIs
Topic: Bug GUI
Replies: 4
Views: 301

Re: Bug GUI

Any update here? Bug is there since 2019 :-( ....
by stevens
Tue Jan 12, 2021 2:49 am
Forum: PowerShell GUIs
Topic: Error gridview via Get-AzWvdHostPool
Replies: 1
Views: 198

Error gridview via Get-AzWvdHostPool

Hi, I'm loading Get-AzWvdHostPool in a gridview but then get error Screenshot_1.png Though error, it loads fine but errors keep popping up. Also when I close them, they reappear; When I load limited set of properties via (Azure cmdlet to get hostpools from WVD) Get-AzWvdHostPool | select Name, HostP...
by stevens
Tue Dec 15, 2020 2:33 am
Forum: PowerShell GUIs
Topic: Bug GUI
Replies: 4
Views: 301

Bug GUI

Hi,

Please see viewtopic.php?f=21&t=14943
How should I interprete this result https://github.com/Azure/azure-powershell/issues/7358 ?
Is it fixed and if it is, how how should I proceed now?

J
by stevens
Tue Dec 15, 2020 2:14 am
Forum: PowerShell GUIs
Topic: Gridview: howto check if value is empty (coming from SQL DB)?
Replies: 2
Views: 158

Re: Gridview: howto check if value is empty (coming from SQL DB)?

Awesome, was at wrong path here. Works correctly, thanks!
by stevens
Mon Dec 14, 2020 5:40 am
Forum: PowerShell GUIs
Topic: Gridview: howto check if value is empty (coming from SQL DB)?
Replies: 2
Views: 158

Gridview: howto check if value is empty (coming from SQL DB)?

Hi, I 'd need to check if a gridview entry has a value yes or no. The value for $Result = $($datagridview1.SelectedRows[0].Cells['Myvalue'].Value) I have is System.DBNull. But there is no way I found yet to check if the value is there if (($Result -eq [DBNull]::Value or ([DBNull]::Value).Equals([DBN...
by stevens
Fri Nov 20, 2020 6:16 am
Forum: PowerShell GUIs
Topic: Grid: keep focus when refresh(?)
Replies: 18
Views: 910

Re: Grid: keep focus when refresh(?)

Ok, fixed it. Thanks for your help!
by stevens
Tue Nov 17, 2020 6:13 am
Forum: PowerShell GUIs
Topic: Grid: keep focus when refresh(?)
Replies: 18
Views: 910

Re: Grid: keep focus when refresh(?)

Ok, I see what is happening.
The selected index row is ok, but when refresh happens selectionchanged is also triggered and the value of selected index is 0 again :-(
by stevens
Tue Nov 17, 2020 6:07 am
Forum: PowerShell GUIs
Topic: Grid: keep focus when refresh(?)
Replies: 18
Views: 910

Re: Grid: keep focus when refresh(?)

I had a few minutes today so I cobbled together a simple example of how this works so you can see if it matches what you are doing. Your actual code would have made this much easier. The method used has variations depending on how your form's behavior is set. Thanks! You didn't ask for the code btw...