![]() |
Can't Add StatusBar |
Post Reply ![]() |
Author | |
corpcon ![]() Groupie ![]() Joined: 28 June 2007 Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() Posted: 21 September 2007 at 9:28pm |
Clearly I've missed something.
- I'm using VB6
My MDI form has a CommandBars control.
I add the following code ...
Dim StatusBar As IStatusBar
Set StatusBar = CommandBars.StatusBar StatusBar.Visible = True However, IStatusBar is not available in the syntax popup when I enter the code. When I run it, it fails on the second line (Type mismatch).
Instead of As IStatusBar, I then tried As StatusBar which is available in the syntax popup. But I still get the same error on the second line (Set StatusBar =...).
I see other people are able to make this work, so what silly thing did I miss?
|
|
![]() |
|
Bernie ![]() Senior Member ![]() ![]() Joined: 05 July 2007 Location: Taiwan Status: Offline Points: 109 |
![]() ![]() ![]() ![]() ![]() |
Sytax Error in your codes.
Dim ST As StatusBarPane
Set ST = CommandBars1.StatusBar.AddPane(12) ST.Text = Now ST.Width = 500 CommandBars1.StatusBar.Visible = True These codes did work!
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |