Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - SOLVED: Create commandbars controls in run time
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: Create commandbars controls in run time

 Post Reply Post Reply
Author
Message
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: Create commandbars controls in run time
    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
Back to Top
Waescher View Drop Down
Newbie
Newbie


Joined: 15 September 2006
Location: Germany
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote Waescher Quote  Post ReplyReply Direct Link To This Post 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)
...
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.048 seconds.