![]()  | 
 
Updating buttons with same id | 
 
    Post Reply  
   | 
  
| Author | |
   
   John31  
   
   Groupie  
   Joined: 08 December 2005 Location: United States Status: Offline Points: 70  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Updating buttons with same idPosted: 03 February 2006 at 7:46am  | 
 
| 
   
    Not sure what I am doing wrong, but I think this should work. I have a menu item called Actions, in this menu there is a button with ID_CALL, On the toolbar I also have a button with ID_CALL. In code when I findcontrol ID_CALL and set enable to false only the button on the toolbar is changed. If I click the actions menu the ID_CALL button is still enabled. What am I missing. 
 
 
  | 
 |
| 
   
     
     Regards
 
   
  John Layton  | 
 |
![]()  | 
 |
   
   SuperMario  
   
   Senior Member  
    
   Joined: 14 February 2004 Status: Offline Points: 18057  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 03 February 2006 at 7:54am | 
 
| 
   
    
   Do this in the Update event, this way it will be called for both instances of the control.  If not, then you have to search for both instances and enable\disable both. 
   
  Case ID_CALL: Control.Enabled = IIF(SOME_BOOL_EXPRESSION, True, False)  | 
 |
![]()  | 
 |
   
   John31  
   
   Groupie  
   Joined: 08 December 2005 Location: United States Status: Offline Points: 70  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 03 February 2006 at 8:10am | 
 
| 
   
    
   Thanks for quick response.  Much easier although I had already done the search thing.  
    
   
   | 
 |
| 
   
     
     Regards
 
   
  John Layton  | 
 |
![]()  | 
 |
    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  |