I have a form where I need to hide a single element in one case, but show it in the other. This wouldn't worry me much, but when a button is clicked I have to "re-show" the hidden item.
When I use HideToCustomization(), and then Restore() the item it shows up at the bottom of the form, not in its original location. This makes sense, but isn't what I need. Right now I am trying to use Restore(base item, insert type), but I
don't want to have to worry in the future about the item being moved,
other items being removed, etc.
Is there a simple way to restore to exactly the same location as before it was hidden, using only information available from that layout control item? Ie, something like a "item.LocationInContainer" property, or set of values?
Thanks,
//Andrew