Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个可以在运行时或设计时创建的表单来帮助组件。但是我需要知道这个表单是否在设计或运行时打开,有人知道该怎么做吗?
试试ComponentState属性
if (csDesigning in ComponentState) then