joshuaand Posted September 30, 2003 Posted September 30, 2003 Hi, What I am trying to do is get the name of a panel that exists in my statusBar, I cant seem to find any properties that will let me do it?? Dim i as integer Dim tempStatusBar As StatusBar = theStatusBar Dim tempStatusBarPanels As StatusBarPanelCollection = tempStatusBar.Panels For i = 0 To tempStatusBarPanels.Count - 1 tempStatusBarPanels.????????????? next Any ideas?????? Thanks Joshua Quote
Administrators PlausiblyDamp Posted September 30, 2003 Administrators Posted September 30, 2003 Statusbar panels don't have a name property. What are you trying to do, there may be another way round the problem. Also For Each sp As StatusBarPanel In theStatusBar.Panels 'use sp here sp.Text = "Test" Next is probably slightly cleaner code for what you were doing. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
joshuaand Posted September 30, 2003 Author Posted September 30, 2003 Hi, I have a status bar panel with a number of panels created, this will differ with the application I am using it for, and I have named them when I created them so I assumed I could get the name back out under code. Thanks for the tip on the code too, it is much cleaner! Thanks Joshua Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.