0

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?

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
talyak
  • 1
  • 1

0 Answers0