Print Page | Close Window

ActiveX Commandbar.FrindControl

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=188
Printed Date: 07 May 2024 at 6:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ActiveX Commandbar.FrindControl
Posted By: tomhermolle
Subject: ActiveX Commandbar.FrindControl
Date Posted: 22 October 2003 at 6:53am

I am unable to get this method to return anything, and the documentation is less than helpful in terms of its specification of the parameters required (i.e. it says certain arguments are of type Variant and gives no documentation of possible values...).

I have tried

dim mycb as CommandBar

set mycb = CommandBars.ActiveMenuBar.FindControl(,1)

where 1 is an ID of a control, but mycb is always empty.

Am I missing something or is this a bug?

Cheers

Tom




Replies:
Posted By: lansetaosheng
Date Posted: 30 October 2003 at 8:43pm

 I have  the same question

 waiting on line  !

 



Posted By: Oleg
Date Posted: 03 November 2003 at 6:11am

Declare mycb as ICOmmandBarControl.

Add Recursive parameter:

 

Dim mycb as ICommandBarControl

Set Control = CommandBars.ActiveMenuBar.FindControl(, 1, , True)



Posted By: rdtcgriffin
Date Posted: 21 March 2004 at 9:38pm

I have tried the FindControl method and it works for menus added that are of xtpControlButton type. But whenever I try to find a control that is of type xtpControlPopup, the method returns me Nothing.

Is there another method that I need to use?

Thanks!

 



Posted By: asd123456789
Date Posted: 13 May 2004 at 12:09am
Originally posted by rdtcgriffin rdtcgriffin wrote:

I have tried the FindControl method and it works for menus added that are of xtpControlButton type. But whenever I try to find a control that is of type xtpControlPopup, the method returns me Nothing.

Is there another method that I need to use?

Thanks!

 

 I have  the same question!



Posted By: SuperMario
Date Posted: 13 May 2004 at 6:02am
I just answered in this post:

https://forum.codejock.com/forum_posts.asp?TID=607&PN=1 - https://forum.codejock.com/forum_posts.asp?TID=607&P N=1


Posted By: asd123456789
Date Posted: 14 May 2004 at 2:31am

I finding the control for set the Enbaled and the Visible.

I want do it like this:

Commandbars.ActiveMenuBar.Controls(ID_RUN_LOAD_TABLES).Enabl ed=TRUE

Commandbars.ActiveMenuBar.Controls(ID_RUN_LOAD_TABLES).Visib le=TRUE

Reference ActiveBar please.




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