Disable execution in designer time

Hi! I did a form that inherits from one wich load data through a datagriddatasource. I need to change only the name of the table on form that inherits, but in designer time (of this form that inherits), the VS try to load data based on parameters of parent form and thus I receive an error message. How can I disable it

Thanks in advance!


Answer this question

Disable execution in designer time

  • rajdev

    Hi.

    There is a property of the form, called DesignMode, that you can use to know if the form is being designed. That should do the trick.



  • James2007

    just note that DesignMode from ISite is not testable (cannot be used) the form's constructor.


  • Disable execution in designer time