code execution on child form @ design time?

S

Scott

I have a project that has inherited forms and it seems at times the
code is running on the children forms during design time making me more
work to try to detect that I am in design mode and have the forms not
run. 1) Why does this happen? 2) Suggestions on what to do?

Many thanks and happy holidays,

Scott Emick
VB Programmer
 
L

lord.zoltar

Scott said:
I have a project that has inherited forms and it seems at times the
code is running on the children forms during design time making me more
work to try to detect that I am in design mode and have the forms not
run. 1) Why does this happen? 2) Suggestions on what to do?

Many thanks and happy holidays,

Scott Emick
VB Programmer

I think this may happen if your form runs code, specifically, the New
procedure or possibly some of the properties.
One way I've fixed this problem is moving the code that is causing the
problem to a seperate procedure, and only call it when it runs.
 

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

Top