I have a user control which I have added to a form and am having problems with it when trying to view the parent form in the designer. The user control displays data from a database and in its constructor pipulates itself using:
// Populate the control
This is all fine when I view the user control itself but on opening the parent form it tries to call the populate function and fails as the database does not exist yet. I have put break points in the code but I guess these do not get processed by the designer as its not in debug as such.
How can I prevent run-time logic from being executed by the designer in this way. I think I must be most of the way there as I can view the user control itself.