Print Page | Close Window

SOLVED: Create commandbars controls in run time

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=5442
Printed Date: 20 June 2025 at 7:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: Create commandbars controls in run time
Posted By: ElvisM
Subject: SOLVED: Create commandbars controls in run time
Date Posted: 06 November 2006 at 1:42pm
Hi...
Is possible to create commandbars objects in run time?
 
Thanks


-------------
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015



Replies:
Posted By: Waescher
Date Posted: 08 November 2006 at 7:42am
Yes it is...

Like this in VB6:

private function CreateCommandBars(byval oForm as Form, byval sControlname as String, byval oParentControl as Object) as Object
    Set CreateCommandBars= oForm.Controls.Add("Codejock.CommandBars.10.3.1", sControlname, oParentControl)
End sub


The name must be unique, and dont forget to remove the control!

...
Call m_Form.Controls.Remove(sControlname)
...



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