Z
ZBINContact
Is there a directive or a command to outline code that I want the
Designer to ignore? I am creating a group of user controls with
extended self-checking functionality. In each user control, I call a
self-check function from a Load event handler, which checks ranges or
more complex program-related situations at load time and throws up a
messagebox and at times changes the control's properties if the
situation demands it. This helps our engineers immensely, but the
unfortunate side effect is that everytime i rebuild or refresh the
Designer window in any way, this self check is compiled by the
Designer and it will change all the values and throw up
messageboxes.
In summary:
Can I somehow delineate a section of code to be ignored by the
Designer (like #DEBUG tells the compiler to ignore it in Release
Mode)?
Thank you.
Clayton
Designer to ignore? I am creating a group of user controls with
extended self-checking functionality. In each user control, I call a
self-check function from a Load event handler, which checks ranges or
more complex program-related situations at load time and throws up a
messagebox and at times changes the control's properties if the
situation demands it. This helps our engineers immensely, but the
unfortunate side effect is that everytime i rebuild or refresh the
Designer window in any way, this self check is compiled by the
Designer and it will change all the values and throw up
messageboxes.
In summary:
Can I somehow delineate a section of code to be ignored by the
Designer (like #DEBUG tells the compiler to ignore it in Release
Mode)?
Thank you.
Clayton