Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Can't Add StatusBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can't Add StatusBar

 Post Reply Post Reply
Author
Message
corpcon View Drop Down
Groupie
Groupie


Joined: 28 June 2007
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote corpcon Quote  Post ReplyReply Direct Link To This Post Topic: Can't Add StatusBar
    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?
Back to Top
Bernie View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 July 2007
Location: Taiwan
Status: Offline
Points: 109
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bernie Quote  Post ReplyReply Direct Link To This Post Posted: 22 September 2007 at 3:15am
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!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.