简体   繁体   中英

Stop component from executing code in IDE (BCB)

I made a new component which executes the code in my constructor whilst being on the IDE. I need to stop it from doing that and only execute the code while it's actually executing the program. I'm using C++ Builder 2009.

删除使IDE执行此操作的新组件。

  if (ComponentState.Contains(csDesigning))
    ShowMessage("Design-time");
  else
    ShowMessage("Runtime");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM