Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Disable execution in designer time
 

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!
thiagooooo  Friday, October 06, 2006 6:15 PM
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.


Federico_B  Saturday, October 07, 2006 11:34 AM
just note that DesignMode from ISite is not testable (cannot be used) the form's constructor.
joeycalisay  Tuesday, October 10, 2006 2:30 PM

You can use google to search for other answers

Custom Search

More Threads

• ToolboxBitmap doesn't work
• Designer won't accept custom ToolBoxItem on drag drop
• Combobox
• populating treeview control with directories - SLOW
• Making the designer generate code
• Accessing events of an object through a component property
• Toolbox error when using System.Drawing.Design.ToolboxItem
• Found a way to change shape of a form in VB.net, BUT works only if the color quality is set to 16bit
• confussion into how to put progress bar into my project
• Make a componenent with IComponent in a nested namespace