Note that there are some explanatory texts on larger screens.

plurals
  1. POInherited form does not show correctly in design view
    text
    copied!<p>I have a simple base form that has no UI controls in the design view. I have declared few textbox controls that have protected modifier and are used in both the parent code behind and as UI controls in the design view of the sub class that inherits the parent class. </p> <p>Basically you see an empty form in the parent class's design view and a form with controls in the sub class's design view. The application compiles and runs as expected.</p> <p>The problem is I keep getting a:</p> <pre><code>"No context registered. Use the 'RegisterContext' method or the 'spring/context' section from your configuration file" </code></pre> <p>when I try to open up the form. I know this was working a week ago. I did play around a bit with Spring.NET configurations but I am sure I have reverted everything back. If there was a problem that would show up during runtime anyway. </p> <p>I debugged with another instance of VS to see what the problem is and it shows an issue as Spring.NET not being able to resolve a baseDao class. If I let the subclass inherit from System.Windows.Forms only, there is no issue opening the the sub class in the design view. This is very strange. I did however manage to create another base class with a different name and subclass it. I have tried deleting the files from the solution and removed the references inside the project file. That did not help. Now if I rename the files, that won't work either. </p> <p>Can anyone suggest anything here? VB.NET + Visual Studio 2008. The base form inherits from DevExpress Form v 11.1</p> <p><strong>EDIT:</strong> It's got nothing to do with DevExpress controls as changing the base form to inherit Windows.Forms.Form makes no difference</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload