FindControl returns null while buttons are visible |
Post Reply |
Author | |
JoukevRossum
Groupie Joined: 03 November 2011 Location: The Netherlands Status: Offline Points: 30 |
Post Options
Thanks(0)
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, true, false); 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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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.
|
|
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 |