.NET & FindControl |
Post Reply |
Author | |
SBK2K
Newbie Joined: 04 October 2005 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 04 October 2005 at 9:22pm |
Hi, I'm currently evaluating the Xtreme Suite to determine if I want to start using it in my programs. I've hit a problem I can't work out with .NET. I'm using C# and I want to disable one of the tools in the toolbar and in a menu. I've tried using CommandBars.FindControl([toolid]).Enabled = false; And that just disables the first tool... using the other prototype for FindControl Public Function FindControl( _ As follows: CommandBars.FindControl(null, [toolid], null, true); Still disables the tool, but only the first tool (i.e. it doesn't recurse). What am I doing wrong? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
recurse mean that it try to search it in all toolbars and menus., but can return only one control. Please use Update event to Enable/Disable controls. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |