![]() |
Finding a CommandBar by BarID (VB6) |
Post Reply ![]() |
Author | ||||
Milkman ![]() Newbie ![]() Joined: 16 September 2005 Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() Posted: 18 September 2005 at 1:29pm |
|||
The CommandBars control doesn't include a function that will find a
Command Bar by BarID. The sample programs use the Command Bar
index
value; however, that is a limited approach. Use the
piece of code below to create a CommandBar object from a BarID.
With this piece of code you can directly access CommandBar objects through a single line of code:
Or perhaps in your toolbar menu commands:
If you plan on using it like this, make sure to put a line of code in the update procedure indicate the status of the toolbar in the dropdown menus.
Edited by Milkman |
||||
![]() |
||||
ylhyh ![]() Newbie ![]() Joined: 24 October 2007 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
|||
thanks
![]() |
||||
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |