Print Page | Close Window

How find CommandBar Index

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=8574
Printed Date: 05 February 2025 at 1:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How find CommandBar Index
Posted By: Albert1
Subject: How find CommandBar Index
Date Posted: 29 October 2007 at 9:32am
I wish to show or hide commandbars at runtime. How can I get the index of an element inside the commandbars collection?

I checked all our examples and I found only statements like this (i.e. DynamicPopups):

CommandBars(2).Visible = Not CommandBars(2).Visible


At the moment I'm following the same way (numbering commandbars from 1 to ...) but how can I get this dimamically?

Thank you



Replies:
Posted By: Oleg
Date Posted: 29 October 2007 at 12:52pm
Hi,
use "For each", find CommandBar you need and hide it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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