Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - FindControl returns null while buttons are visible
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

FindControl returns null while buttons are visible

 Post Reply Post Reply
Author
Message
JoukevRossum View Drop Down
Groupie
Groupie
Avatar

Joined: 03 November 2011
Location: The Netherlands
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote JoukevRossum Quote  Post ReplyReply Direct Link To This Post Topic: FindControl returns null while buttons are visible
    Posted: 24 September 2013 at 6:09am
Hi all,

I'm having some difficulties when using the following command:
CommandBars.ActiveMenuBar.FindControl(XTPControlType.xtpControlButton, buttonID, truefalse);
This command always returns 'null' while the buttons do exist with the right Button ID assigned to it.
How can I fix this problem?
thanks in advance,
Jouke 
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2013 at 8:53am
It depends on where the control is.  I'd guess you need to set recursive to True.  With False it will only check top level controls.
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.203 seconds.