Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - HowTo Delete CommandBars Object?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HowTo Delete CommandBars Object?

 Post Reply Post Reply
Author
Message Reverse Sort Order
IUnknown View Drop Down
Newbie
Newbie


Joined: 30 July 2004
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote IUnknown Quote  Post ReplyReply Direct Link To This Post Topic: HowTo Delete CommandBars Object?
    Posted: 30 July 2004 at 5:44am
CHello.

I create at runtime a CommandBars Object in a UserControl, here is the Code:

Private m_Toolbar As XtremeCommandBars.CommandBars

Set m_Toolbar = Controls.Add("COMMANDBARS.CommandBarsCtrl.1", "NToolbar")

Later, if i dont need the CommandBars anymore, i want to destroy them, but how,? I tried this way:

Controls.Remove "
NToolbar"
Set m_Toolbar = Nothing

It doesnt work. If then i create a new Toolbar, the App close without ErrorMessages.

So my question is simple, how can i destroy a Toolbar completely, so that i can create later a new one?

Greets, IUnknown
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.109 seconds.