.NET 3.5, WinForm app, C#, Visual Studio 2008
I have created custom control comTextBox, I added it drag-drop to form. Done, compiled, run, all OK. Month ago I changed control constructor and I added to constructor parameter and I manualy changed all designer.cs files
Compiled, works fine, but components are not visible in design mode.
this is current constructor which works fine fails when Visual Studion loads design form:
Expand|Select|Wrap|Line Numbers
- public comTextBox (InSettings _InSettings)
- {
- this.oInSettings = _InSettings;
- }
Expand|Select|Wrap|Line Numbers
- public comTextBox ()
- {
- this.oInSettings = new InSettings();
- }
Object reference not set to an instance of an object
So, how to correctly, for Visual Studio too, add a parameter to a constructor?