Hi there,
I have a Form, upon which I have a UserControl. The OnLoad event of the UserControl contains some code to load in values from an XML file.
In the IDE, when I open the Form, an error is thrown because when it's pulling in the UserControl the .Load is looking at a null value (in runtime it's fine because this value is set).
Is there anyway to get around this? It's not causing a problem, just an annoying error message comes up whenever I load the project into the IDE, or open the Form.
I have a Form, upon which I have a UserControl. The OnLoad event of the UserControl contains some code to load in values from an XML file.
In the IDE, when I open the Form, an error is thrown because when it's pulling in the UserControl the .Load is looking at a null value (in runtime it's fine because this value is set).
Is there anyway to get around this? It's not causing a problem, just an annoying error message comes up whenever I load the project into the IDE, or open the Form.