Prevent code execution in form design view

  • Thread starter Thread starter Sagaert Johan
  • Start date Start date
S

Sagaert Johan

Hi

I made a control that in its onload sets the dockstyle to Fill,
I only want this in runmode not in the IDE forms designer.

Is there some attribute or define i can rely or use to prevent some code
parts to execute in the designer view ?

Johan
 
Look at the DesignMode property. It's in call Component derived classes.
It's a boolean: True if the component (or control) is in DesignMode, false
if it isn't.

Pete
 
Back
Top