set focus to uilistbox

3 views (last 30 days)
Frederic ROBACHE
Frederic ROBACHE on 7 Jun 2021
Answered: Abhishek Chakram on 11 Oct 2023
Hi all,
In AppDesigner, does anyone know how to set the focus to a uilistbox ?
1000 thanks.

Answers (1)

Abhishek Chakram
Abhishek Chakram on 11 Oct 2023
Hi Frederic ROBACHE,
It is my understanding that you want to set focus to a “uilistbox” in the App Designer. Here is a sample code for the same:
focus(app.ListBox);
You can refer to the following documentation to know more about the functions used:
Best regards,
Abhishek Chakram

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!