remove/add panels in the status bar at run time

lottoman2000

Member
Joined
Mar 11, 2005
Messages
6
Programming Experience
5-10
Hello all,


I did not find a hide/show methods for the statusbarpanel class. As a
work around I tried removing the panel and then add it back when I need
it. I can remove the panel with no problems. But when I try to add it,
I am getting an exception: Object already has a parent.


To remove the panel I am using the following statement:
Me.stbStatus.Panels.RemoveAt(3)


To add:
Me.stbStatus.Panels.Add(Me.StatusBarPanel2)
or
Me.stbStatus.Panels.Add(3,Me.StatusBarPanel2)


Any help is appreciated.
 
Last edited:

TPM

Well-known member
Joined
Dec 7, 2004
Messages
623
Location
CA
Programming Experience
3-5
Oh I got ya, ok well if you want to hide a panel set the min width to 0 and then to hide it just set it's width to 0
 
Top Bottom