all groups > visual studio .net general > april 2004 >
You're in the

visual studio .net general

group:

Inherited forms don't show up in the designer


Inherited forms don't show up in the designer Sergio Florez M.
4/20/2004 1:34:43 PM
visual studio .net general:
I just posted this in the wrong list. Sorry. anyway here it goes:

Visual inheritance was working just fine until now. The designer shows =
the parent form OK but the inherited ones gave me this error:

System.Windows.Forms.Design.IEventHandlerService service already exists =
in the service container. Parameter name: serviceType

Now the designer has changed its message and what I get is "Object =
reference not sent to an instance of an object". I opened the task list =
to see in which file the error was and there's nothing in the file =
column of the list. If I double click the task it just places me on the =
first line of code in the file where the form is declared.

The application still works fine though so I guess this must be an error =
with Visual Studio and not with my code.

--=20
El que persevera insiste
Sergio Florez M.
Re: Inherited forms don't show up in the designer Sergio Florez M.
4/21/2004 8:22:52 AM
Just in case this ever happens to any of you this error occurs when you =
place code in the form events (such as Load) in the parent form. =
Apparently the IDE runs them when it loads the child forms. All you have =
to do is not put code in the parent fomr events :(

--=20
El que persevera insiste
Sergio Florez M.
Medell=EDn, Colombia


"Sergio Florez M." <sergioflorezm@hotmail.com> escribi=F3 en el =
mensaje news:Oq#w4YwJEHA.620@TK2MSFTNGP10.phx.gbl...
I just posted this in the wrong list. Sorry. anyway here it goes:

Visual inheritance was working just fine until now. The designer shows =
the parent form OK but the inherited ones gave me this error:

System.Windows.Forms.Design.IEventHandlerService service already =
exists in the service container. Parameter name: serviceType

Now the designer has changed its message and what I get is "Object =
reference not sent to an instance of an object". I opened the task list =
to see in which file the error was and there's nothing in the file =
column of the list. If I double click the task it just places me on the =
first line of code in the file where the form is declared.

The application still works fine though so I guess this must be an =
error with Visual Studio and not with my code.

--=20
El que persevera insiste
Sergio Florez M.
AddThis Social Bookmark Button