Print Page | Close Window

HowTo Delete CommandBars Object?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=999
Printed Date: 12 May 2024 at 11:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HowTo Delete CommandBars Object?
Posted By: IUnknown
Subject: HowTo Delete CommandBars Object?
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net