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.

有帮助吗?

解决方案

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

其他提示

Remove the new component you've made that makes the IDE do that.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top