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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top