Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

Determining if method runs at design-time

!!!! DO NOT RESPOND THIS QUESTION !!!!

How to determine in the method of an component if it runs at design-time or at runtime?

I have a component which handles a message (mouse enter/leave). Running at design-time leads Delphi to crash allthrough this method works normally at runtime. How could I prevent method load (or processing message) at design-time?
0
msa2003
Asked:
msa2003
  • 2
1 Solution
 
msa2003Author Commented:
I had already found a solution myself.

I should check if not(csDesigning in ComponentState) property.

Thanx a lot of attention. Please do not respond this question.
0
 
ChmodCommented:
PAQ'd & points refunded

Chmod
Community Support Moderator @Experts Exchange
0
 
msa2003Author Commented:
Thank you a lot
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now