asomer 0 Posted January 25 Hi, i want to deactivate a selection component (combo box or radio buttons) by following script component.ComboBox.Visible=0 It disappears when i run the script. Visibility function works fine, but it is still active. You can change the selection when you clicked on invisible component. Can you advise how I can solve this please? Share this post Link to post Share on other sites
AzeoTech 0 Posted January 25 You probably need to set focus to another control. So, pick another control and do: component.myComponent.SetFocus() that should pull focus away from the combo/radio. Share this post Link to post Share on other sites
asomer 0 Posted January 27 Visibility function prevents click in button components. If button is invisible, you can't click on it. I mean combo box dissappears, but you can still click on it and change the value. Is there any way to prevent click? Share this post Link to post Share on other sites
AzeoTech 0 Posted January 27 A couple possible workarounds: 1) put it in a group with another control and then make the group invisible 2) move the component programmatically offscreen to make it invisible, then back onscreen to make it visible. I prefer the 1st solution, especially if you are making other controls invisible at the same time. Share this post Link to post Share on other sites
asomer 0 Posted January 28 1st solution solved my problem. Thanks for your help. Share this post Link to post Share on other sites