K
Ken
This problem occurs when I try to open the form in the designer.
I have form A that contains a method that is called in the OnLoad event.
This method contains the following line:
Assembly Asmbly = Assembly.GetEntryAssembly ( );
Then proceeds to use properties from Asmbly.
I am using this to load the Copyright, and version from the EXE into private
fields.
I have form B that inherits from form A. When I try to open form B in the
designer I get the following message:
An error occurred while loading the document. Fix the error, and try
loading the document again. The error message follows:
Value cannot be null.
Parameter name: element
I believe that this message is caused by the GetEntryAssembly call. If I
comment out the call to the method that calls GetEntryAssembly. It works
fine.
Is there another way to do this, or does anyone have a work around?
Thanks
Ken
I have form A that contains a method that is called in the OnLoad event.
This method contains the following line:
Assembly Asmbly = Assembly.GetEntryAssembly ( );
Then proceeds to use properties from Asmbly.
I am using this to load the Copyright, and version from the EXE into private
fields.
I have form B that inherits from form A. When I try to open form B in the
designer I get the following message:
An error occurred while loading the document. Fix the error, and try
loading the document again. The error message follows:
Value cannot be null.
Parameter name: element
I believe that this message is caused by the GetEntryAssembly call. If I
comment out the call to the method that calls GetEntryAssembly. It works
fine.
Is there another way to do this, or does anyone have a work around?
Thanks
Ken