Help with code- why is the text from the design editable?

My student is working on a project, it is not completed

Why when I run the program I am able to edit her text that is written in the design

Your student likely used a TextArea instead of a Label, and hasn’t checked the “read only” box for that element. They can find it by going in to Design mode, then clicking on the element on the screen. From there, they should go to the “properties” and scroll to the bottom where there will be a “read only” checkbox. (See bottom of properties panel in the image below.)