G
Glenn Nilsson
Hi,
I want to add and remove StatusBarPanels dynamically from a StatusBar,
depending on user input.
The problem is that when I use the StatusBar.Remove(panel) method the
'Parent' propery of the StatusBarPanel isn't cleared, it still says that
it's parent is the StatusBar, so when I later try to add this panel
again I get an exception telling me that the panel already has a parent.
StatusBar.Panels.Clear() correctly clears the Parent-prop, but I don't
want to remove all the panels...
How simple this would be I there only was a 'Visible' property on a
StatusBarPanel.
I tried searching the groups and only found this in one place, with no
reply :/
http://shorl.com/hedosuvafihy
or
http://groups.google.com/groups?hl=...1c2a606$4b0c3120$8af82ecf@TK2MSFTNGXA03#link1
Thanks,
Glenn
I want to add and remove StatusBarPanels dynamically from a StatusBar,
depending on user input.
The problem is that when I use the StatusBar.Remove(panel) method the
'Parent' propery of the StatusBarPanel isn't cleared, it still says that
it's parent is the StatusBar, so when I later try to add this panel
again I get an exception telling me that the panel already has a parent.
StatusBar.Panels.Clear() correctly clears the Parent-prop, but I don't
want to remove all the panels...
How simple this would be I there only was a 'Visible' property on a
StatusBarPanel.
I tried searching the groups and only found this in one place, with no
reply :/
http://shorl.com/hedosuvafihy
or
http://groups.google.com/groups?hl=...1c2a606$4b0c3120$8af82ecf@TK2MSFTNGXA03#link1
Thanks,
Glenn