Вопрос

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