ActiveX Commandbar.FrindControl |
Post Reply |
Author | |
tomhermolle
Newbie Joined: 22 October 2003 Location: United Kingdom Status: Offline Points: 9 |
Post Options
Thanks(0)
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 |
|
lansetaosheng
Newbie Joined: 30 October 2003 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
I have the same question waiting on line !
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Declare mycb as ICOmmandBarControl. Add Recursive parameter:
Dim mycb as ICommandBarControl Set Control = CommandBars.ActiveMenuBar.FindControl(, 1, , True) |
|
rdtcgriffin
Newbie Joined: 18 March 2004 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
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!
|
|
asd123456789
Newbie Joined: 12 May 2004 Location: China Status: Offline Points: 10 |
Post Options
Thanks(0)
|
I have the same question! |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
asd123456789
Newbie Joined: 12 May 2004 Location: China Status: Offline Points: 10 |
Post Options
Thanks(0)
|
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. |
|
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 |