|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
code execution on child form @ design time?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 Scott wrote:
> I have a project that has inherited forms and it seems at times the I think this may happen if your form runs code, specifically, the New> 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 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. |
|||||||||||||||||||||||