Page 1 of 1

TableLayoutPanel (Possible Bug)

Posted: Sun Aug 15, 2021 9:22 am
by elation
To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product: PowerShell Studio 2021 (64 Bit)
Build: v5.8.192
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.18363.0

*** Please add details and screenshots as needed below. ***

I am using a TableLayoutPanel to organize some text boxes. After moving/adding some textboxes in the TableLayoutPanel with a Copy/Paste, CTRL-Z, and CTRL-Y, errors are produced. The error(s) can prevent closure of PowerShell Studio (except with end task) which may end up causing data loss. I think it might just a problem with 'Undo' and 'Redo' overall. I reverted to 191 and had error messages when dealing with other controls and undo/redo.

Reproduce:
New Form
Add TableLayoutPanel
Add a Textbox
Copy/paste Textbox several times in the TableLayoutPanel
CTRL-Z a couple times
CTRL-Y a couple of times
May have to repeat the undo/redo to produce the errors

Errors:
Unhandeled Exception: Cannot access a disposed object.
Cannot remove the specified item because it was not found in the specified Collection.
Non-negative number required.
Parameter name: count

DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

Re: TableLayoutPanel (Possible Bug)

Posted: Mon Aug 16, 2021 7:29 am
by brittneyr
Thank you for reporting. I have been able to reproduce this behavior and have filed a bug report with the development team. I'll post here when I have an update.

Re: TableLayoutPanel (Possible Bug)

Posted: Thu Aug 26, 2021 7:19 am
by brittneyr
Please try service build 5.8.193 and let me know if this is still an issue for you.

Re: TableLayoutPanel (Possible Bug)

Posted: Wed Sep 15, 2021 7:35 am
by elation
brittneyr wrote: Thu Aug 26, 2021 7:19 am Please try service build 5.8.193 and let me know if this is still an issue for you.
Working well now - Thank you for the quick turn-around!