I created Custom Control that inherits from BindingNavigator component, in its constructor I use this code:
if (!DesignMode)
{
bindingNavigatorMoveFirstItem.Image = Image.FromFile(Path.GetFullPath("Pictures\\last.png"));
}
I use this control in another form and when I try to open the form (in design mode) I get the following error:
Exception of type 'System.ComponentModel.Design.ExceptionCollection' was thrown.
what should I do to solve it?