The issue is probably caused by the fact that you add in the controls dynamically. The grid will anchor relative to the size parent control at time of insertion. In this case, the grid has a set size, but they parent panel’s size may vary depending if the user resizes it.
Why don't you include these controls in the designer? You can always set control's Visible property to False if you need to hide it.
Treeview control reverts all icons from imglist back to default 0 index icon
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
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 LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Treeview control reverts all icons from imglist back to default 0 index icon
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Treeview control reverts all icons from imglist back to default 0 index icon
Any updates on the following project saving, closing, and reopening issues:
ImageList / Treeview icons all switching back to the default 0 index icon (I'm holding off on changing them back because there's so many of them)?
Splitter Control resetting to 4 after switching it to 2
Re: Treeview control reverts all icons from imglist back to default 0 index icon
We made changes to the way we save that information to the psf file that preserves the ImageIndex information and the image key names. Once it clears the QA process, we will release the build.
Nothing yet on the splitter control.
Nothing yet on the splitter control.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Treeview control reverts all icons from imglist back to default 0 index icon
Good news. The changes we made also fixed the splitter issue.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Treeview control reverts all icons from imglist back to default 0 index icon
One other thing I just noticed with the Treeview. I removed the splitter panels for now and am using a Treeview and 2 Panel controls to give it the 3 panel splitter look.
In designview the Treeview border style looks Fixed 3D At Runtime and after an exe build it actually looks Fixed Single Its really noticeable if you look at the bottom edge of the control
Re: Treeview control reverts all icons from imglist back to default 0 index icon
The designer may vary slightly from the final script output. Different hosts and OSes may produce slightly different results. For example, High DPI support is dependent on the running executable.
This is one of the reasons we have the Preview command. It allows you to see what the final GUI looks like in action.
David
This is one of the reasons we have the Preview command. It allows you to see what the final GUI looks like in action.
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Treeview control reverts all icons from imglist back to default 0 index icon
We just released a PowerShell Studio service build (v5.5.149). It should resolve the issues you posted.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.