How to set the visibility of labels attached to controls such as edit boxes in APP Designer?
10 views (last 30 days)
Show older comments
I want to make all the edit boxes invisible, but I achieved this by using the programming statement "app. EditField_19. Visible=" off ";" to make the edit boxes invisible, but the labels are still visible(Figure 2); How to solve this situation where the name of this tag cannot be seen in the component browser despite selecting it individually, so it cannot be programmed as invisible?
The normal visible situation is shown in Figure 1; The current situation is shown in Figure 2;
Figure 1
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1689792/image.png)
Figure 2
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1689797/image.png)
0 Comments
Accepted Answer
Voss
on 8 May 2024
First, make the label show up in the Component Browser by right-clicking the edit field and selecting "Include component labels in Component Browser", as described here:
Then you know the label's name, so you can set the visibility of the label in your code, e.g., app.EditField_19Label.Visible = "off";
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!