Hey all,
I'd imagine this is a simple question but I haven't been able to find anything on it.
I have a 'remove' button that should be disabled if a certain listbox is empty. The problem is, if the remove button has focus at the time of being disabled (like if I use the button to remove the last item in said listbox) I get an error stating that I cannot disable a control that has focus.
Is there any way to check if a certain control has focus so I can change the focus to another control prior to disabling the button?
Thx,
Dave
I'd imagine this is a simple question but I haven't been able to find anything on it.
I have a 'remove' button that should be disabled if a certain listbox is empty. The problem is, if the remove button has focus at the time of being disabled (like if I use the button to remove the last item in said listbox) I get an error stating that I cannot disable a control that has focus.
Is there any way to check if a certain control has focus so I can change the focus to another control prior to disabling the button?
Thx,
Dave