GUI question - Adding device to a "list" for further processing

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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.
This topic is 5 months and 3 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
lontru
Posts: 110
Last visit: Tue Oct 29, 2024 3:59 am

GUI question - Adding device to a "list" for further processing

Post by lontru »

Hi im in a middle of creating af tool for debugging logs.
have created a simple gui for bulk import device and check if they are online for now.
My next thing to do is to add those device you want to look further on over to some sort of list.
What would profill that need? And be able to remove again from the list? another gridview or what is best suited for this?
ScriptDriver64Elevated_NisHxWvLOW.png
ScriptDriver64Elevated_NisHxWvLOW.png (17.54 KiB) Viewed 2612 times
User avatar
lontru
Posts: 110
Last visit: Tue Oct 29, 2024 3:59 am

Re: GUI question - Adding device to a "list" for further processing

Post by lontru »

why does it not append but "reset"?
PowerShell_Studio_0lerL3dZae.gif
PowerShell_Studio_0lerL3dZae.gif (126.46 KiB) Viewed 2601 times
same code in ISE seem to work??
powershell_ise_EE9M5eg5XZ.gif
powershell_ise_EE9M5eg5XZ.gif (396.75 KiB) Viewed 2601 times
User avatar
Alexander Riedel
Posts: 8575
Last visit: Sat Nov 02, 2024 12:15 pm
Answers: 23
Been upvoted: 42 times

Re: GUI question - Adding device to a "list" for further processing

Post by Alexander Riedel »

What you are seeing in the ISE is called runspace contamination.
https://www.sapien.com/blog/2022/04/25/ ... -avoid-it/
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
lontru
Posts: 110
Last visit: Tue Oct 29, 2024 3:59 am

Re: GUI question - Adding device to a "list" for further processing

Post by lontru »

got a little further

how do i get the device selected`? when something change`? it it the DataSourceChanged event?
PowerShell_Studio_GBiLVkExNP.gif
PowerShell_Studio_GBiLVkExNP.gif (261.82 KiB) Viewed 2575 times
Attachments
BulkLogView.psf
(46.09 KiB) Downloaded 54 times
This topic is 5 months and 3 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked